Replies: 5 comments 5 replies
-
NB: consensus so far is to eventually move the context code altogether into RHDS |
Beta Was this translation helpful? Give feedback.
-
As a stopgap solution, we can copy those context styles into a shared constructible stylesheet object and have all our components use it |
Beta Was this translation helpful? Give feedback.
-
We're going to cover this in a sync meeting at some point soon, so this is a drop jumping the gun, but nonetheless writing it out helps me organize my thoughts. From where I'm sitting, it's not clear what the concept of So I'd prefer to see components use design tokens like |
Beta Was this translation helpful? Give feedback.
-
@markcaron I'm not sure I can make that call, maybe we need to loop in Dan or Adam Lazarra? I say that because I think some or a lot of FTS patterns we have use teal, dark red, etc. as background colors. If we're moving away from using those, great, |
Beta Was this translation helpful? Give feedback.
-
Here are some example kitchen sink examples that illustrate the various color themes |
Beta Was this translation helpful? Give feedback.
-
In
rh-footer
we transitioned from PFE's color context variables (i.e. the broadcast variables) to using our ownrh-
prefixed vars with design token fallbacks. This begs the question of if / how we should be tying our colors into PFE's broadcast variables at all.Example
Before
After
Results in us loosing correct styling in dark contexts:
Background
PFE relies on the following block of code to switch the color of text and links based on color context:
@patternfly/pfe-styles/pfe-context.css
Beta Was this translation helpful? Give feedback.
All reactions