[wp-trac] [WordPress Trac] #61563: Twenty Fourteen: update styles for Table blocks and figure captions
WordPress Trac
noreply at wordpress.org
Wed Jul 3 18:34:27 UTC 2024
#61563: Twenty Fourteen: update styles for Table blocks and figure captions
---------------------------------------+------------------------------
Reporter: sabernhardt | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch has-screenshots | Focuses: css
---------------------------------------+------------------------------
Comment (by sabernhardt):
[attachment:"61563.diff"] makes several changes:
- Reduces specificity for the table cell border color and width (matching
the `0-1-1` level it had had in Twenty Fourteen 3.9, but still excluding
the Stripes style to honor the intent in r58399).
- Removes the border color rules that match the border to the text when
//any// color is selected (whether Text or Background, or possibly Border
if/when appearance tools support is added).
- Replaces `.edit-post-visual-editor .editor-block-list__block` with
`.editor-styles-wrapper` in selectors so the font size plus the header
cells' alignment and letter case can apply again.
- Adds a `[dir="rtl"] .editor-styles-wrapper table th` selector so the
header cell text alignment changes within the iframe.
- Changes the `border-collapse` property to `collapse` so it matches the
front (from `block-library` styles).
- Moves the border styles to a separate ruleset with low specificity
levels of `0-1-1` and `0-1-2`, and the border rule is assigned in one line
for the table and its cells together because the borders are collapsed.
- Adds a `[class*=" wp-block-"] figcaption` selector so the caption styles
apply in the editor.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61563#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list