Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stylesheets added via add_editor_style don't support @import #26963

Open
kjellr opened this issue Nov 13, 2020 · 0 comments
Open

Stylesheets added via add_editor_style don't support @import #26963

kjellr opened this issue Nov 13, 2020 · 0 comments
Labels
CSS Styling Related to editor and front end styles, CSS-specific issues. [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. [Type] Discussion For issues that are high-level and not yet ready to implement.

Comments

@kjellr
Copy link
Contributor

kjellr commented Nov 13, 2020

Currently, stylesheets added via add_editor_style() do not support @import. Instead, additional stylesheets must be added in an array:

add_editor_style( array(
    'style.css',
    'style-two.css'
) )

This conceptually makes sense, but it would be interesting if WordPress could somehow also enqueue @imported stylesheets automatically.

(This could be a core/trac issue, but I'm adding it here since it came up during a discussion about FSE and Global Styles)

@kjellr kjellr added [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. CSS Styling Related to editor and front end styles, CSS-specific issues. [Type] Discussion For issues that are high-level and not yet ready to implement. labels Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Styling Related to editor and front end styles, CSS-specific issues. [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. [Type] Discussion For issues that are high-level and not yet ready to implement.
Projects
None yet
Development

No branches or pull requests

1 participant