-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix(pagination): Colors, right to left demo, and logical properties #2116
base: staging/cubone
Are you sure you want to change the base?
fix(pagination): Colors, right to left demo, and logical properties #2116
Conversation
|
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size Change: +32 B (+0.02%) Total Size: 208 kB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really like the logical properties! nice work!
Let's find a more comprehensive solution for the computed theme properties, one that doesn't require us to disable lint rules.
@@ -20,17 +20,23 @@ | |||
gap: var(--rh-space-2xl, 32px) calc(var(--rh-space-xs, 4px) / 2); | |||
flex-wrap: wrap; | |||
|
|||
--rh-pagination-accent-color: var(--rh-color-interactive-primary-default); | |||
/* stylelint-disable-next-line */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we have to disable this rule? it's there for a reason. perhaps there's a bug lower down in the stack we need to fix? Try putting it in a surface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review.
This is the same issue we're seeing in this comment on #2043.
If pagination is not wrapped in a surface, the tokens are undefined; thus, all the colors are incorrect. See the note in this PR's body under "Notes to reviewers".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a changeset
What I did
<a>
tags in theopen
variantwidth
/height
/top
/bottom
etc to use logical propertiesTesting Instructions
<input>
Notes to Reviewers
Ensure that this is the proper way to handle adding fallback colors to things like
--rh-color-interactive-primary-default
.Note: the color context demo on uxdot works because the component is wrapped in a
<rh-surface>
. These fallbacks are in place for when the component is not wrapped in a<rh-surface>
component.