Should we remove --pf
styles from Base classes?
#578
Closed
bennypowers
started this conversation in
Polls
Replies: 2 comments 2 replies
-
These always scare me because of the possible downstream issues but my knee jerk reaction is to say get 'em outta there. 👍 |
Beta Was this translation helpful? Give feedback.
2 replies
-
Closing because we did it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A number of pfe elements in the 1:1 milestone use
--pf-*
tokens in their base classes, which means that their inheriting RHDS versions also pack along those tokens, even though their stylesheets typically overwrite them entirely with RHDS tokens. We typically redefine the built-in css properties those tokens assign to in RHDS, rather than aliasing the pf tokens with RHDS tokens, so the often times the PatternFly tokens end up as dead weight.Should we remove PatternFly styles from base classes, moving them to the
pfe-*.scss
stylesheets? There would be no visual changes in either project, but RHDS elements would have a reduction in 'bundle size'.7 votes ·
Beta Was this translation helpful? Give feedback.
All reactions