[wp-trac] [WordPress Trac] #57053: Themes: Support additional link related pseudo classes in `theme.json`.

WordPress Trac noreply at wordpress.org
Tue Jan 24 08:09:35 UTC 2023


#57053: Themes: Support additional link related pseudo classes in `theme.json`.
------------------------------+-----------------------
 Reporter:  peterwilsoncc     |       Owner:  audrasjb
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  6.2
Component:  Themes            |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  css
------------------------------+-----------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55121" 55121]:
 {{{
 #!CommitTicketReference repository="" revision="55121"
 Themes: Support additional link related pseudo classes in `theme.json`.

 This changeset adds support for `:link` and `:any-link` in `theme.json`,
 using the `VALID_ELEMENT_PSEUDO_SELECTORS` array. `:link` can be used to
 style unvisited links and `:any-link` can be used to style any link
 containing an `href` attribute.

 Props peterwilsoncc, whaze, audrasjb, costdev, mukesh27.
 Fixes #57053.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57053#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list