-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Enable CSS Module Support #43290
Comments
Pinging @elastic/kibana-operations |
Pinging @elastic/kibana-platform |
Pinging @elastic/kibana-design |
I'm working on a new plugin ( I'll wait for EUI to share their thoughts, but we used them on what's now Twitter Lite and the latest Web interface and they were great. |
We are indeed likely moving over to CSS Modules (via astroturf). @thompsongl will be sending out an email to dev with the details fairly soon. But yes, our plan is to convert EUI to use it (for prefixing and modularization), and then utilize it down in Kibana. A lot of our original reasoning is covered in elastic/eui#1656, but again Greg will follow up with more detail on why we're leaning towards Astroturf. |
Email went out yesterday, so I guess it's real now 😄 Getting CSS Modules enabled in Kibana as an option for plugin developers would be helpful for our cause. EUI Perspective Broader Perspective astroturf |
I love CSS Modules, and this would solve a lot of problems with scoping and obfuscating classnames in elements. Do we have any ideas when we could get this into x-pack? |
Something to consider: I've had no success using |
Not something I've seen (not that I've really spent time looking), but EUI's postcss process is also very small (autoprefixer, basically). This are good things to bring up as we start to investigate this |
This is being done as part of #53532 |
This should be strait-forward to add to new platform plugins using @kbn/optimizer. Do we have a plugin which is looking to use this which we could introduce it for? |
The decision was to use Emotion, and not CSS modules. Closing this issue. Feel free to re-open if you feel like this needs discussed more. |
There have been a number of discussions/requests for CSS Module support in Kibana. This would require an addition to the Webpack config, (perhaps more).
One use case would be #42545... see this comment for more information.
I know that EUI is considering moving to CSS Modules... perhaps someone from that team can weigh in on pros/cons/considerations.
The text was updated successfully, but these errors were encountered: