[wp-trac] [WordPress Trac] #60808: Twenty Twenty-Four: Black outline around the Navigation block submenu-expanding button
WordPress Trac
noreply at wordpress.org
Mon Jun 10 13:31:51 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.6
Component: Bundled Theme | Version: 6.5
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-testing has-patch | Focuses:
needs-testing-info | accessibility
-------------------------------------------------+-------------------------
Comment (by wildworks):
> I disagree with adding and enqueueing a stylesheet because it's a
convention that block themes are trying to move away from; it is part of
reducing the complexity of theme building.
I understand this convention. However, if you go ahead with the approach
of adding CSS to theme.json, we should be aware that it will only work for
users who have not updated their Additional CSS.
If the user has already updated additional CSS for the block to which the
patch is trying to apply CSS, the CSS defined in theme.json will not be
applied.
Then, as I already mentioned, additional CSS can be overridden by the
user.
This is my concern and why I suggested an alternative approach of
enqueuing styles via PHP.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60808#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list