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

WordPress Trac noreply at wordpress.org
Tue Feb 27 02:35:18 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 wildworks):

 The reason why focus styles are applied even when you right-click an
 element is probably because right-click implicitly puts focus on the
 element. If this was intended, I don't think it's a bug. For example,
 Twenty Twenty-One also has its own focus style, which can be applied in
 the right-click menu.

 https://github.com/WordPress/wordpress-
 develop/blob/ec37b57fb98a28539f9427f81c3cf268d46561ad/src/wp-
 content/themes/twentytwentyone/style.css#L1594-L1601

 If the right-click behavior is not what we want, hou about using `focus-
 visible`?

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


More information about the wp-trac mailing list