feat(nav): unified theme updates - #8193
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
WalkthroughReplaces hard-coded FontAwesome elements with Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issues
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. 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-8193.surge.sh A11y report: https://pf-pr-8193-a11y.surge.sh |
There was a problem hiding this comment.
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
📒 Files selected for processing (2)
src/patternfly/components/Nav/nav-toggle-icon.hbssrc/patternfly/components/Nav/nav.scss
| // * 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
Per @andrew-ronaldson closed should point down; expanded should point up
There was a problem hiding this comment.
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!
|
🎉 This PR is included in version 6.5.0-prerelease.49 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #8014
Closes #8130
Summary by CodeRabbit