[wp-trac] [WordPress Trac] #58355: Twenty Sixteen: fix editor styles for Table and Calendar blocks and captions (was: Twenty Sixteen: Table block does not show selected font size in editor)
WordPress Trac
noreply at wordpress.org
Wed Jun 12 17:06:27 UTC 2024
#58355: Twenty Sixteen: fix editor styles for Table and Calendar blocks and
captions
-------------------------------------+---------------------
Reporter: nidhidhandhukiya | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.6
Component: Bundled Theme | Version: 6.2.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: css
-------------------------------------+---------------------
Changes (by sabernhardt):
* keywords: has-patch => has-patch needs-testing
* milestone: Awaiting Review => 6.6
Comment:
As the patch for #59602 addresses more editor issues now,
[attachment:"58355.2.diff"] makes some similar changes for Twenty Sixteen
plus a few more:
- Removes the redundant font size rules for table elements (`th`, `td`,
`caption`) as 59912.2.patch proposed. When a user does not select a
special font size for a Table or Calendar block, the table cells continue
to appear at 16px, inheriting from the `body`.
- Corrects the `font-weight` for table `caption` elements.
- Updates `[class^="wp-block-"] figcaption` to `figure[class*="wp-block-"]
> figcaption` because the class lists do not begin with a `wp-block-`
class anymore.
- Changes `text-align` to `start` so it works the same way in RTL without
needing to update the extra `.rtl` rule to a `[dir="rtl"]` selector to
apply within the iframe. Anyone using the //editor// should have a browser
that supports `start` (it's not worth changing on the front end). These
changes apply to table elements plus figure captions.
- Removes the RTL `text-align` rulesets because `start` makes them
unnecessary.
- Adds the RTL font selection in `editor-styles.css` for the iframe editor
and Classic Editor. The non-framed editor would be more difficult to
correct (because it adds `.editor-styles-wrapper` to the selector), but
this font has not worked in any editor context for a long time (if ever).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58355#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list