Skip to content

Make dark tables readable for print#25557

Closed
MartijnCuppens wants to merge 2 commits intotwbs:v4-devfrom
MartijnCuppens:dark-table-print
Closed

Make dark tables readable for print#25557
MartijnCuppens wants to merge 2 commits intotwbs:v4-devfrom
MartijnCuppens:dark-table-print

Conversation

@MartijnCuppens
Copy link
Member

@MartijnCuppens MartijnCuppens commented Feb 5, 2018

Fixes #25453.

The text of dark tables/theads is white and invisible if the page is printed (some browsers don't print backgrounds). Wrapping the theming for dark tables in a @media not print media query will disable theming for dark tables for print.

Also I removed the lines which forced the tds and ths to have a white background. If a table/row/cell has an accented background, you would probably also want this when you print the page (if the browser supports coloured backgrounds).

@mdo
Copy link
Member

mdo commented Feb 20, 2018

I think I'd rather see us override these styles in our _print.scss file. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants