[carbon-web-components/web components]: Remove global CSS out of component stylesheets #10557
Closed
4 tasks
Labels
dev
Needs some dev work
owner: Innovation Team
used when the engineering work will be done by Hybrid Cloud with DDS engineers as consultants
package: carbon web components
package: web components
Work necessary for the IBM.com Library web components package
v2
All web components currently bring global styles into their component style sheets. This has two major drawbacks:
Additionally, some components are using the scss
@extend
function to re-purpose styles for updated markup. This, however, does not remove the unnecessary style declarations for older markup.To correct this, we need to remove global styles (and perhaps style primitives like button, link, etc) and reduce the existence of "dead" css in all component stylesheets. Doing this should help a few key metrics, including load time, total blocking time, and memory usage.
A demo of many components sharing a single CSSStyleSheet via adoptStyles. can be found here
Tasks
The text was updated successfully, but these errors were encountered: