[wp-trac] [WordPress Trac] #61441: Twenty Fourteen: post content links are not underlined in the editor
WordPress Trac
noreply at wordpress.org
Wed Jun 19 23:10:57 UTC 2024
#61441: Twenty Fourteen: post content links are not underlined in the editor
-------------------------------------+-----------------------------
Reporter: viralsampat | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: css
-------------------------------------+-----------------------------
Comment (by sabernhardt):
@viralsampat I deleted the screenshots and proposed patches for other
themes to reduce confusion. Those are not related to the issue in Twenty
Fourteen, where the editor does not show the underline to match the links
in the post content area on the front end.
- Twenty Eleven and Twenty Thirteen purposely removed the underline for
links (it's too late to change that decision after more than a decade),
and the editor already matches the front end for those.
- The Page List block does not have an `href` for its links in the editor,
and browser default stylesheets underline links except when those elements
do not have the `href` attribute. Themes that fall back to the browser
default include Twenty Ten, Twenty Twelve, Twenty Nineteen, and Twenty
Twenty-One. You could open an
[https://github.com/WordPress/gutenberg/issues?q=label%3A%22%5BBlock%5D+Page+List%22+is%3Aclosed
issue or PR on GitHub] to edit the
[https://github.com/WordPress/gutenberg/blob/trunk/packages/block-
library/src/page-list/editor.scss block library styles]. I think it could
work with a zero-specificity reset:
{{{
:where(.wp-block-pages-list__item__link) {
text-decoration: underline;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61441#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list