Skip to content

fix(plain actions): update tokens to vertical-plain - #8495

Merged
mcoker merged 5 commits into
patternfly:mainfrom
jcmill:bug/8251-update-plain-action-tokens
Jul 20, 2026
Merged

fix(plain actions): update tokens to vertical-plain#8495
mcoker merged 5 commits into
patternfly:mainfrom
jcmill:bug/8251-update-plain-action-tokens

Conversation

@jcmill

@jcmill jcmill commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Closes #8251

Update 12 components to use --pf-t--global--spacer--control--vertical--plain for plain-styled actions. Updates were applied to specific --pf-t--global--spacer--control--vertical--default or the raw --pf-t--global--spacer--sm tokens in block paddings and margin offsets.

Summary by CodeRabbit

  • Style
    • Refined vertical spacing across accordion, alert, breadcrumb, card, data list, hint, modal, navigation, popover, table, and tree view components.
    • Standardized control and action spacing for more consistent alignment and interaction areas.
    • Adjusted component padding and margins to improve visual consistency across states and layouts.

@jcmill
jcmill requested a review from mcoker July 14, 2026 17:32
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 639ab48f-a98c-4ebb-9ae3-9ffdb31ab9bb

📥 Commits

Reviewing files that changed from the base of the PR and between 1fea0c2 and a1b1db3.

📒 Files selected for processing (2)
  • src/patternfly/components/Table/table.scss
  • src/patternfly/components/TreeView/tree-view.scss

Walkthrough

Updated spacing custom properties across 11 PatternFly components, replacing default or generic spacer tokens with plain control and action spacing tokens for padding, margins, insets, and offsets.

Changes

Plain control spacing

Layer / File(s) Summary
Component spacing token updates
src/patternfly/components/{Accordion,Alert,Breadcrumb,Card,DataList,Hint,ModalBox,Nav,Popover,Table,TreeView}/*.scss
Vertical padding, margins, insets, and offsets now use plain control spacing tokens; TreeView inline-end padding uses the action-horizontal token, and a DataList outline calculation is reordered.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested labels: released on @prerelease``

Suggested reviewers: mcoker, lboehling, srambach, andrew-ronaldson

🚥 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 format and accurately describes the token update.
Linked Issues check ✅ Passed The changes align with #8251 by updating plain-action padding and related offsets to control-vertical-plain across the affected components.
Out of Scope Changes check ✅ Passed The edits stay within the spacing-token audit scope, with only related CSS variable updates and no unrelated feature changes.

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.

@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

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/patternfly/components/Table/table.scss`:
- Around line 120-121: Update the table button padding variables near the action
padding definitions so --#{$table}__button--PaddingBlockStart and
--#{$table}__button--PaddingBlockEnd use
--pf-t--global--spacer--control--vertical--plain instead of
--pf-t--global--spacer--sm. Leave the existing action padding variables
unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: ab957bc4-b530-4c0e-af7b-6b4a5d13d8d2

📥 Commits

Reviewing files that changed from the base of the PR and between 716f0e5 and efad9e0.

📒 Files selected for processing (12)
  • src/patternfly/components/Accordion/accordion.scss
  • src/patternfly/components/Alert/alert.scss
  • src/patternfly/components/Breadcrumb/breadcrumb.scss
  • src/patternfly/components/Button/button.scss
  • src/patternfly/components/Card/card.scss
  • src/patternfly/components/DataList/data-list.scss
  • src/patternfly/components/Hint/hint.scss
  • src/patternfly/components/ModalBox/modal-box.scss
  • src/patternfly/components/Nav/nav.scss
  • src/patternfly/components/Popover/popover.scss
  • src/patternfly/components/Table/table.scss
  • src/patternfly/components/TreeView/tree-view.scss

Comment thread src/patternfly/components/Table/table.scss Outdated
@patternfly-build

patternfly-build commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

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

Some others I found that we should update or ask design about

  • Accordion toggle - inline padding still uses spacer--md
    • If we're updating accordion and nav, should other things like them be updated?
      • Menu items
      • Dual list selector items
      • Tree view items/nodes
      • Wizard nav/step links
  • Toggle group buttons need semantic spacers (regular and compact)
  • Random but I think this could use the text-to-element token
    --#{$toggle-group}__icon--text--MarginInlineStart: var(--pf-t--global--spacer--sm);

Comment thread src/patternfly/components/Button/button.scss Outdated
Comment thread src/patternfly/components/Button/button.scss Outdated
Comment thread src/patternfly/components/Table/table.scss Outdated
Comment thread src/patternfly/components/Table/table.scss
Comment thread src/patternfly/components/Table/table.scss Outdated
Comment thread src/patternfly/components/TreeView/tree-view.scss
@jcmill
jcmill requested a review from mcoker July 17, 2026 20:06

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

L🔥TM

@mcoker
mcoker merged commit b6dd1c9 into patternfly:main Jul 20, 2026
6 checks passed
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.6.0-prerelease.22 🎉

The release is available on:

Your semantic-release bot 📦🚀

dlabaj added a commit that referenced this pull request Jul 28, 2026
* fix: address word-break/overflow-wrap bug (#8487)

* chore(input group): add radius modifier (#8483)

* fix(table): nested table sorting (#8491)

* fix(tree-view): revert caret rotations (#8490)

* fix(a11y): ignore target-size rule for WCAG 2.2 bump (#8493)

* fix(tree): update tree table and DLS tree toggle icon direction (#8502)

* fix: update disabled description to use text color token (#8497)

* fix(plain actions): update tokens to vertical-plain (#8495)

* fix: address bottom pagination bugs (#8498)

* fix: address bottom pagination bugs

* fix: round border-radius on default bottom in glass

* chore(primary details): fix drawer and toolbar (#8509)

* fix(modal): footer action spacing (#8526)

---------

Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>
Co-authored-by: Andrew Ronaldson <aronalds@redhat.com>
Co-authored-by: Jake Miller <jake83miller@gmail.com>
Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com>
Co-authored-by: Jake Miller <jakmille@redhat.com>
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.

Bug - Update plain actions to use control-vertical-plain token

3 participants