fix(docked): add min width on icon elements#8431
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdds ChangesIcon spacing in docked nav
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 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. Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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-8431.surge.sh A11y report: https://pf-pr-8431-a11y.surge.sh |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/patternfly/components/MenuToggle/menu-toggle.scss (1)
467-468: ⚡ Quick winRemove commented-out code for clarity.
The commented-out selector pattern suggests an alternative implementation approach was considered but not pursued. Since the decision has been made to nest the icon constraint within the
@at-rootblock above (lines 462-464), this commented code should be removed to keep the codebase clean.🧹 Remove commented code
.#{$menu-toggle}__icon { min-width: 1lh; } } - - // &:where(.pf-m-docked, .pf-m-text-expanded) { - // } }🤖 Prompt for 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. In `@src/patternfly/components/MenuToggle/menu-toggle.scss` around lines 467 - 468, Remove the leftover commented selector block in menu-toggle.scss — delete the two commented lines containing "&:where(.pf-m-docked, .pf-m-text-expanded) { }" (the commented-out selector immediately below the `@at-root` icon constraint) so the file no longer contains that unused commented code and stays clean.
🤖 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.
Nitpick comments:
In `@src/patternfly/components/MenuToggle/menu-toggle.scss`:
- Around line 467-468: Remove the leftover commented selector block in
menu-toggle.scss — delete the two commented lines containing
"&:where(.pf-m-docked, .pf-m-text-expanded) { }" (the commented-out selector
immediately below the `@at-root` icon constraint) so the file no longer contains
that unused commented code and stays clean.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: c0650984-a4b4-4cfb-a644-e65a41f3644c
📒 Files selected for processing (2)
src/patternfly/components/Button/button.scsssrc/patternfly/components/MenuToggle/menu-toggle.scss
|
Actionable comments posted: 0 |
|
🎉 This PR is included in version 6.6.0-prerelease.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes: #8333
Sets min-width: 1lh on icon elements. This mimics the nav component's icon spacing pattern for docked navigation.
Summary by CodeRabbit