chore(controls): apply control tokens - #8121
Conversation
This covers control buttons, form elements, Switch, input groups and menu toggles.
WalkthroughReplaced generic border color and radius tokens with control-specific tokens across seven components, changing references from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. No actionable comments were generated in the recent review. 🎉 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-8121.surge.sh A11y report: https://pf-pr-8121-a11y.surge.sh |
|
@andrew-ronaldson checked that what's in the design-tokens repo is the latest from figma and put up a PR to add gray-45 and also looks like it's pulling in red-05. #8122 If that looks good, feel free to merge it and rebase your branch from main to pull it in. |
Adding toggle group and copy clipboard updates
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/patternfly/components/ClipboardCopy/clipboard-copy.scss`:
- Line 22: The CSS custom property for the clipboard-copy expandable content
border radius uses a non-existent token; update the value of
--#{$clipboard-copy}__expandable-content--BorderRadius to use the defined
control token --pf-t--global--border--radius--control--form-element so it
matches the rest of the codebase (FormControl, Button, TextInputGroup) and the
tokens in tokens-default.scss; simply replace the incorrect
--pf-t--global--border--radius--form-element with
--pf-t--global--border--radius--control--form-element in the clipboard-copy.scss
assignment.
| @@ -193,12 +193,12 @@ | |||
| --#{$button}--m-plain--m-no-padding--border--offset: calc(#{pf-size-prem(2px)} * -1); | |||
|
|
|||
There was a problem hiding this comment.
For the button component styles, just to confirm, we don't want to make the same change to the stateful button?
There was a problem hiding this comment.
Will be updated in a separate issue for notification badge.
| @@ -12,7 +12,7 @@ | |||
| --#{$menu-toggle}--LineHeight: var(--pf-t--global--font--line-height--body); | |||
| --#{$menu-toggle}--BackgroundColor: var(--pf-t--global--background--color--control--default); | |||
| --#{$menu-toggle}--BorderRadius: var(--pf-t--global--border--radius--small); | |||
There was a problem hiding this comment.
Should the border radius change, too?
There was a problem hiding this comment.
Pending for convo on things that appear in toolbars
| --#{$toggle-group}__button--hover--after--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular); | ||
| --#{$toggle-group}__button--before--BorderWidth: var(--pf-t--global--border--width--control--default); | ||
| --#{$toggle-group}__button--before--BorderColor: var(--pf-t--global--border--color--default); | ||
| --#{$toggle-group}__button--before--BorderColor: var(--pf-t--global--border--color--control--default); |
There was a problem hiding this comment.
Should we also update the border radius on toggle group? It does use a tiny radius currently, so if we updated it, it would change from 4px to 6px.
There was a problem hiding this comment.
Will be updated in separate issue.
|
🎉 This PR is included in version 6.5.0-prerelease.42 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #8018
This covers control buttons, form elements, Switch, input groups toggle group and menu toggles.
Summary by CodeRabbit