fix(compass): add opt-out for small screen warning#8153
Conversation
WalkthroughThe Compass component now supports an opt-out modifier class ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 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-8153.surge.sh A11y report: https://pf-pr-8153-a11y.surge.sh |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/patternfly/components/Compass/compass.scss (1)
337-338: 🧹 Nitpick | 🔵 TrivialOptional: remove dead
width: 80%declaration.
width: 80%;is immediately overridden bywidth: 300px;on the following line. The first declaration is never applied.♻️ Proposed fix
- width: 80%; width: 300px;🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/patternfly/components/Compass/compass.scss` around lines 337 - 338, Remove the redundant width declaration by deleting the earlier "width: 80%;" line in the CSS rule that also contains "width: 300px;" (the block around the Compass component in compass.scss), leaving only "width: 300px;" so the rule is not shadowed by a dead property.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@src/patternfly/components/Compass/compass.scss`:
- Around line 337-338: Remove the redundant width declaration by deleting the
earlier "width: 80%;" line in the CSS rule that also contains "width: 300px;"
(the block around the Compass component in compass.scss), leaving only "width:
300px;" so the rule is not shadowed by a dead property.
|
🎉 This PR is included in version 6.5.0-prerelease.43 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #8151
Summary by CodeRabbit
New Features
Documentation