[wp-trac] [WordPress Trac] #52555: Twenty Nineteen: Link-based buttons do not have a text color set in the editor
WordPress Trac
noreply at wordpress.org
Fri Feb 26 16:40:00 UTC 2021
#52555: Twenty Nineteen: Link-based buttons do not have a text color set in the
editor
---------------------------+---------------------------------
Reporter: mikejolley | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: accessibility, css
---------------------------+---------------------------------
Comment (by mikejolley):
@poena We can work around this in our CSS by forcing "white" text,
however, we though it would be best to do this upstream to avoid theme
specific workarounds. There is a definite discrepancy between the default
styles used on the frontend vs the editor.
This problem is not specific to WooCommerce though. If you add the button
markup to a HTML block (`<div class="wp-block-button"><a href="#" class
="wp-block-button__link">Test</a></div>`) and preview in the editor
compared to previewing the frontend, you'll see also the blue text in
editor, but white text on frontend. This doesn't affect the "Button" block
because that injects some other inline classnames and elements.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52555#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list