fix: adjusted button and menu toggle icon size#8238
Conversation
Adjusted button/menu-toggle icon width and moved min-width back to the parent. Also addressed circle buttons to be a circle.
WalkthroughChanged Button and MenuToggle SCSS: updated components' Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 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-8238.surge.sh A11y report: https://pf-pr-8238-a11y.surge.sh |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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/Button/button.scss`:
- Line 4: The file contains a stray debug token "asdf" in
src/patternfly/components/Button/button.scss that breaks Sass parsing; remove
that token (ensure no stray text exists outside of valid Sass
rules/variables/mixins) and re-run the Sass compile to verify; check the
surrounding rule(s) in button.scss (e.g., any $button variable usage or
.pf-button rules) to ensure interpolation like #{$button} is intact and not
preceded/followed by stray characters.
In `@src/patternfly/components/MenuToggle/menu-toggle.scss`:
- Line 9: MenuToggle's icon element still forces min-width causing extra
horizontal space; remove the hardcoded min-width from the MenuToggle __icon
styling (the rule targeting the __icon within the MenuToggle component) to match
the Button change, and rely on the computed --#{$menu-toggle}--MinWidth variable
instead so mixed icon+text toggles no longer have the excessive min-width.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 06986ae4-eb4f-4e86-b6d1-5ed8583f1609
📒 Files selected for processing (2)
src/patternfly/components/Button/button.scsssrc/patternfly/components/MenuToggle/menu-toggle.scss
srambach
left a comment
There was a problem hiding this comment.
Just a few nits noted elsewhere; buttons look 🟢 to me!
|
🎉 This PR is included in version 6.5.0-prerelease.56 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #8220
Adjusted button/menu-toggle icon width and moved min-width back to the parent. Also addressed circle buttons to be a circle.
Backstop PDF
Full backstop report
Summary by CodeRabbit