Skip to content

Table borders look bad in dark mode #35982

@j-f1

Description

@j-f1

Prerequisites

Describe the issue

I’m super excited to see #35857 and have built a copy of it to try out on my website. However, in dark mode, the borders of table cells remain black (or dark gray).

I think the best solution here would be to update the default .table class to use --bs-border-color as its border color, then add a new class (table-white?) that continues to use the current border colors, but also adds an explicit white background to table cells.

Reduced test cases

See the docs for tables: https://deploy-preview-35857--twbs-bootstrap.netlify.app/docs/5.1/content/tables/

Screenshot_2022-03-09 16 11 06

In light mode, the very first table looks good. But in dark mode, its borders do not change color.

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Safari

What version of Bootstrap are you using?

3790ed0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions