Skip to content

chore(controls): apply control tokens - #8121

Merged
mcoker merged 4 commits into
patternfly:mainfrom
andrew-ronaldson:control-tokens
Feb 18, 2026
Merged

chore(controls): apply control tokens#8121
mcoker merged 4 commits into
patternfly:mainfrom
andrew-ronaldson:control-tokens

Conversation

@andrew-ronaldson

@andrew-ronaldson andrew-ronaldson commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

Closes #8018
This covers control buttons, form elements, Switch, input groups toggle group and menu toggles.

Summary by CodeRabbit

  • Style
    • Updated default border color and border radius across Button, ClipboardCopy, FormControl, MenuToggle, Switch, TextInputGroup, and ToggleGroup so controls use more specific design tokens, refining the visual appearance of form and control elements without changing behavior.

This covers control buttons, form elements, Switch, input groups and menu toggles.
@coderabbitai

coderabbitai Bot commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Replaced generic border color and radius tokens with control-specific tokens across seven components, changing references from --pf-t--global--border--color--default--pf-t--global--border--color--control--default and --pf-t--global--border--radius--small--pf-t--global--border--radius--control--form-element.

Changes

Cohort / File(s) Summary
Control token updates (border color & radius)
src/patternfly/components/Button/button.scss, src/patternfly/components/FormControl/form-control.scss, src/patternfly/components/TextInputGroup/text-input-group.scss
Replaced --pf-t--global--border--radius--small with --pf-t--global--border--radius--control--form-element and --pf-t--global--border--color--default with --pf-t--global--border--color--control--default.
Border color token updates
src/patternfly/components/ClipboardCopy/clipboard-copy.scss, src/patternfly/components/MenuToggle/menu-toggle.scss, src/patternfly/components/Switch/switch.scss, src/patternfly/components/ToggleGroup/toggle-group.scss
Replaced --pf-t--global--border--color--default with --pf-t--global--border--color--control--default for component border defaults.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related issues

  • Buttons - Unified theme updates (Core) #8019 — Overlaps with "Buttons - Unified theme updates (Core)"; token changes to Button border radius/color match that objective.
  • #8018 (Form elements - Unified theme updates) — Aligns with unified theme updates for form/control tokens as described in the linked issue.

Suggested reviewers

  • lboehling
  • srambach
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title follows conventional commit guidelines with a proper scope and clear description of the changes.
Linked Issues check ✅ Passed The PR successfully applies control tokens across form elements and related components, implementing the unified theme updates specified in #8018 per design guidance.
Out of Scope Changes check ✅ Passed All changes are scoped to applying control tokens across specified components, directly addressing the unified theme updates requirement from #8018.

✏️ 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@patternfly-build

patternfly-build commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

@mcoker

mcoker commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

@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.

@andrew-ronaldson
andrew-ronaldson marked this pull request as ready for review February 12, 2026 16:31
@andrew-ronaldson
andrew-ronaldson requested review from lboehling, mcoker and srambach and removed request for lboehling February 12, 2026 16:31

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/patternfly/components/ClipboardCopy/clipboard-copy.scss Outdated

@srambach srambach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L 🎛️ TM

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -193,12 +193,12 @@
--#{$button}--m-plain--m-no-padding--border--offset: calc(#{pf-size-prem(2px)} * -1);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the button component styles, just to confirm, we don't want to make the same change to the stateful button?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the border radius change, too?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be updated in separate issue.

@mcoker
mcoker merged commit 9548cc1 into patternfly:main Feb 18, 2026
5 checks passed
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.5.0-prerelease.42 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Form elements - Unified theme updates (Core)

4 participants