[wp-trac] [WordPress Trac] #60535: Twenty Twenty-Four: Unintended focus outline is applied in the Site Editor

WordPress Trac noreply at wordpress.org
Mon Feb 26 06:34:55 UTC 2024


#60535: Twenty Twenty-Four: Unintended focus outline is applied in the Site Editor
------------------------------+---------------------------------
 Reporter:  wildworks         |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.5
Component:  Bundled Theme     |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  accessibility, css
------------------------------+---------------------------------

Comment (by poena):

 I tried removing the outline width on links with the :active state, but it
 did not hide the outline when I ''right click'' on a link (Chrome and
 Firefox on macOS).

 It only kind of worked on left click mouse down. On mouse up, both the
 outline and text decoration are visible again.

 I just added this in theme.json under styles > elements > link

 {{{
 ":active": {
         "outline": {
                 "width": "0"
         }
 },
 }}}

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


More information about the wp-trac mailing list