fix(button): define missing variables and remove unused ones - #8136
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds missing display-lg font-size tokens (link and main), maps display-lg font-weight, introduces a hover icon transition-delay variable and wires it into hover/focus, removes the default progress opacity variable, and changes the disabled ripple ::after border-color to use the disabled border-color variable. ChangesButton Styling Variables
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches⚔️ Resolve merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Preview: https://pf-pr-8136.surge.sh A11y report: https://pf-pr-8136-a11y.surge.sh |
|
This PR has been automatically marked as stale because it has not had activity in the last 60 days. |
| --#{$button}--m-display-lg--PaddingInlineStart: var(--pf-t--global--spacer--action--horizontal--spacious); | ||
| --#{$button}--m-display-lg--FontSize: var(--pf-t--global--font--size--body--lg); | ||
| --#{$button}--m-display-lg--FontWeight: var(--pf-t--global--font--weight--body--bold); | ||
| --#{$button}--m-link--m-display-lg--FontSize: var(--pf-t--global--font--size--body--lg); |
There was a problem hiding this comment.
This is a small nit, but this could be moved to the block of tokens from line 95-115 (Link)
| --#{$button}--BorderStartStartRadius: var(--#{$button}--BorderRadius); | ||
| --#{$button}--BorderStartEndRadius: var(--#{$button}--BorderRadius); | ||
| --#{$button}--BorderEndStartRadius: var(--#{$button}--BorderRadius); | ||
| --#{$button}--BorderEndEndRadius: var(--#{$button}--BorderRadius); |
There was a problem hiding this comment.
Because there is a fallback defined in the button border-radius, we don't need to add these. It creates some unnecessary overhead in an already large file. But these do get defined in places like a horizontal scrolling nav.
mcoker
left a comment
There was a problem hiding this comment.
Thanks @tarunvashishth! Noted in a comment but just a heads up that you'll need to rebase and fix a couple of conflicts.
…iables # Conflicts: # src/patternfly/components/Button/button.scss
5e75c24 to
cf97195
Compare
mcoker
left a comment
There was a problem hiding this comment.
LGTM, visual regressions passed.
|
🎉 This PR is included in version 6.6.0-prerelease.27 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes #7952
PR Summary
This PR fixes undefined/unused Button CSS variable issues in
src/patternfly/components/Button/button.scss.display-lgtoken:--#{$button}--m-display-lg--FontSize.--#{$button}--m-display-lg--FontWeightinto.pf-m-display-lg.--#{$button}--disabled--BorderColor.BorderStartStart/StartEnd/EndStart/EndEndRadius) to match existingvar(...)usage.--#{$button}__progress--Opacity.Summary by CodeRabbit
New Features
Style