[wp-trac] [WordPress Trac] #62983: Twenty Eleven: Table header cells' font size does not change with block settings
WordPress Trac
noreply at wordpress.org
Wed Feb 19 01:08:38 UTC 2025
#62983: Twenty Eleven: Table header cells' font size does not change with block
settings
---------------------------------------------+-----------------------------
Reporter: truptikanzariya | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-design-feedback | Focuses: css
---------------------------------------------+-----------------------------
Changes (by sabernhardt):
* keywords: has-patch => has-patch needs-design-feedback
* milestone: Awaiting Review => Future Release
Comment:
In the post content area, header cells were set to `10px`, and the other
table cells inherit `15px` from the body text.
1. Simply removing `10px` from the `th`, as PR 8350 does, would increase
the //default// size of header cells to `15px`. Most unexpected changes to
the default should be avoided; however, `10px` is very small.
2. Using `max(10px, 0.66666667em)` would make the header cells scale up
with larger font selections, at two-thirds the size of other cells, and it
would keep a minimum `th` size of 10 pixels if someone decreases the
table's font size. The `max()` function [https://caniuse.com/css-math-
functions browser support] is not perfect but probably good enough.
3. As a compromise between the first two options, the `th` font size could
be `0.8em` with a line-height of `2`. That honors the theme's general
design of smaller text in the header cells, but then the default size
would be more readable at 12 pixels. This would be an unexpected change,
like the first option, though less of a difference and somewhat less
likely to create a problem with long words in narrow columns.
In widgets, all the table cells have a font size of 12 pixels by default,
and the size scales up and down with the block setting (for Table or
Calendar blocks).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62983#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list