[wp-trac] [WordPress Trac] #60808: Twenty Twenty-Four: Black outline around the Navigation block submenu-expanding button

WordPress Trac noreply at wordpress.org
Thu Jul 25 08:05:37 UTC 2024


#60808: Twenty Twenty-Four: Black outline around the Navigation block submenu-
expanding button
-------------------------------------------------+-------------------------
 Reporter:  jordesign                            |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.7
Component:  Bundled Theme                        |     Version:  6.5
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion needs-testing has-patch  |     Focuses:
                                                 |  accessibility
-------------------------------------------------+-------------------------

Comment (by poena):

 I have been thinking a lot about this, I am still torn, but I have changed
 my mind.

 - Even if the editor comes up with controls for styling ''states'', it
 will only support those blocks, and it will not work for all focusable
 elements.

 - Changing the **default** style for focusable elements in core/Gutenberg
 is not an option unless there is a project wide decision to require WCSAG
 level AAA. So the alternative is still to solve it theme by theme.

 - Users who has already saved additional CSS before updating the theme
 does benefit from the CSS in theme.json.

 I think the CSS that was previously added should be moved from theme.json
 to style.css, updated with the change proposed in this ticket, and
 enqueued.
 And that a new file for the proposed navigation block CSS should be
 created and enqueued conditionally. I mean enqueued the same way as the
 button stylesheet.

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


More information about the wp-trac mailing list