Skip to content

feat(nav): unified theme updates - #8193

Merged
mcoker merged 4 commits into
patternfly:mainfrom
wise-king-sullyman:left-nav-unified-token-updates
Mar 4, 2026
Merged

mcoker merged 4 commits into
patternfly:mainfrom
wise-king-sullyman:left-nav-unified-token-updates

Conversation

@wise-king-sullyman

@wise-king-sullyman wise-king-sullyman commented Mar 2, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #8014
Closes #8130

Summary by CodeRabbit

  • Style
    • Updated navigation visuals: replaced hard-coded caret icons with the new icon rendering, adjusted accent color for nav items, changed toggle rotation behavior for expanded items, and refined link border radius for a more consistent, polished appearance.

@coderabbitai

coderabbitai Bot commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

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

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8b5cadb and dbedd7a.

📒 Files selected for processing (2)
  • src/patternfly/components/Nav/nav-toggle-icon.hbs
  • src/patternfly/components/Nav/nav.scss

Walkthrough

Replaces hard-coded FontAwesome elements with pfIcon helper calls for nav toggle icons and updates three Nav design tokens: accent color, toggle-icon rotation, and link border-radius.

Changes

Cohort / File(s) Summary
Icon template
src/patternfly/components/Nav/nav-toggle-icon.hbs
Replace hard-coded <i> icons with pfIcon helper: use rh-microns-caret-left when nav-item--IsDrillup is true, otherwise rh-microns-caret-down.
Design tokens / styles
src/patternfly/components/Nav/nav.scss
Update CSS custom properties: --nav__item--accent--color -> var(--pf-t--global--color--brand--accent--default); --nav__item--m-expanded__toggle-icon--Rotate -> -180deg; --nav__link--BorderRadius -> var(--pf-t--global--border--radius--action--plain--default).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related issues

Possibly related PRs

Suggested labels

released on @prerelease``

Suggested reviewers

  • andrew-ronaldson
  • mcoker
  • lboehling
  • kmcfaul
🚥 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 PR title follows conventional commit format with 'feat' type and 'nav' scope, and accurately describes unified theme updates to navigation components.
Linked Issues check ✅ Passed All code changes directly implement requirements from linked issues #8014 and #8130: accent color updates, border-radius changes, icon replacements, and toggle rotation modifications.
Out of Scope Changes check ✅ Passed All changes are within scope; modifications address only the navigation component styling and icon rendering specified in linked issues without introducing unrelated updates.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 Mar 2, 2026 •

Copy link
Copy Markdown
Collaborator

@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 the current code and only fix it if needed.

Inline comments:
In `@src/patternfly/components/Nav/nav.scss`:
- Line 56: The expanded-state rotation is inverted: swap the rotation values
between the base toggle icon variable and the expanded modifier so the
down-caret baseline becomes the collapsed state and expanded points down. Update
--#{$nav}__item__toggle-icon--Rotate (base) to 180deg and set
--#{$nav}__item--m-expanded__toggle-icon--Rotate to 0deg (i.e., swap the two
values) so collapsed/expanded caret directions are correct.

ℹ️ Review info

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

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 66c6d91 and 8b5cadb.

📒 Files selected for processing (2)
  • src/patternfly/components/Nav/nav-toggle-icon.hbs
  • src/patternfly/components/Nav/nav.scss

Comment thread src/patternfly/components/Nav/nav.scss Outdated
// * Nav item toggle icon
--#{$nav}__item__toggle-icon--Rotate: 0;
--#{$nav}__item--m-expanded__toggle-icon--Rotate: 90deg;
--#{$nav}__item--m-expanded__toggle-icon--Rotate: 180deg;

@coderabbitai coderabbitai Bot Mar 2, 2026 •

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.

⚠️ Potential issue | 🟠 Major

Expanded rotation currently inverts the intended collapsed/expanded caret states.

With the current down-caret baseline, 180deg on expanded makes expanded point up. That flips the requirement (“collapsed up, expanded rotated 180°”). Swap base and expanded rotation values.

🔧 Proposed fix
-  --#{$nav}__item__toggle-icon--Rotate: 0;
-  --#{$nav}__item--m-expanded__toggle-icon--Rotate: 180deg;
+  --#{$nav}__item__toggle-icon--Rotate: 180deg;
+  --#{$nav}__item--m-expanded__toggle-icon--Rotate: 0deg;
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/patternfly/components/Nav/nav.scss` at line 56, The expanded-state
rotation is inverted: swap the rotation values between the base toggle icon
variable and the expanded modifier so the down-caret baseline becomes the
collapsed state and expanded points down. Update
--#{$nav}__item__toggle-icon--Rotate (base) to 180deg and set
--#{$nav}__item--m-expanded__toggle-icon--Rotate to 0deg (i.e., swap the two
values) so collapsed/expanded caret directions are correct.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Looks like there's a conflict here between what was in the issue and what is in the figma, I've reached out to design for clarity.

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.

@wise-king-sullyman, that makes sense! It's good to clarify with the design team to ensure the implementation matches the intended behavior. Once you receive confirmation on the expected direction (whether collapsed should point up or down), I'm happy to help verify that the rotation values align correctly with the icon choice and design spec. Let me know if you need any assistance when you have the clarification! 🐰


🧠 Learnings used
Learnt from: srambach
Repo: patternfly/patternfly PR: 8030
File: src/patternfly/components/TreeView/tree-view.scss:441-445
Timestamp: 2025-12-17T15:25:08.994Z
Learning: In PatternFly TreeView component (src/patternfly/components/TreeView/tree-view.scss), the `.pf-m-disabled` modifier on list items affects only the visual appearance of node content (text and icons), but intentionally does not change the toggle button color. The toggle remains functional and visually distinct to indicate the item can still be expanded/collapsed.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Per @andrew-ronaldson closed should point down; expanded should point up

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.

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

@coderabbitai
coderabbitai Bot requested a review from kmcfaul March 2, 2026 21:59
@mcoker
mcoker merged commit d78a711 into patternfly:main Mar 4, 2026
5 checks passed
@patternfly-build

Copy link
Copy Markdown
Collaborator

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

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.

Docked nav: unified theme tokens Left navigation - Unified theming updates (Core)

5 participants