[wp-trac] [WordPress Trac] #60064: Edit no-js CSS in bundled themes
WordPress Trac
noreply at wordpress.org
Mon Dec 18 21:53:16 UTC 2023
#60064: Edit no-js CSS in bundled themes
---------------------------+------------------------------
Reporter: shawfactor | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: minor | Resolution:
Keywords: 2nd-opinion | Focuses:
---------------------------+------------------------------
Description changed by sabernhardt:
Old description:
> The css directive in style.css of the twenty fifteen theme
>
> `.no-js .main-navigation ul ul {`
>
> should be altered to this
>
> `html.no-js .main-navigation ul ul`
>
> As other plugins like buddypress add their own `no-js` classes to the
> `body` which can cause conflicts. I have raised this with them directly:
>
> https://buddypress.trac.wordpress.org/ticket/9033#ticket
>
> This could be widened into a broader ticket on a standard way of adding
> `no-js` classes that themes or plugins could follow as right now some add
> it to the `html` and some to the `body` class
New description:
The CSS directive in `style.css` of the Twenty Fifteen theme
`.no-js .main-navigation ul ul`
should be altered to this
`html.no-js .main-navigation ul ul`
As other plugins like buddypress add their own `no-js` classes to the
`body` which can cause conflicts. I have raised this with them directly:
#buddypress9033
This could be widened into a broader ticket on a standard way of adding
`no-js` classes that themes or plugins could follow as right now some add
it to the `html` and some to the `body` class
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60064#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list