fix(progress): apply unified theme and icons#8241
Conversation
WalkthroughThis PR updates the Progress component's icon rendering and styling: it replaces raw Font Awesome Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 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-8241.surge.sh A11y report: https://pf-pr-8241-a11y.surge.sh |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/patternfly/components/Progress/progress.scss (1)
226-226: Keep forced-colors border-radius tied to the indicator token.Line 226 introduces a dedicated indicator radius token, but forced-colors
::beforestill reads the bar radius (Line 234). Using the indicator token there too avoids future drift if tokens diverge.♻️ Suggested follow-up
.#{$progress}__indicator { // for forced colors mode &::before { position: absolute; inset: 0; content: ""; border: var(--#{$progress}__indicator--BorderWidth) solid var(--#{$progress}__indicator--BorderColor); - border-radius: var(--#{$progress}__bar--BorderRadius); + border-radius: var(--#{$progress}__indicator--BorderRadius); } }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/patternfly/components/Progress/progress.scss` at line 226, The forced-colors pseudo-element is still using the bar radius token instead of the new indicator radius token, which can cause token drift; update the forced-colors ::before rule to reference the same CSS custom property used for the indicator (var(--#{$progress}__indicator--BorderRadius)) so both the indicator and its forced-colors styling use the identical radius token (look for the ::before selector in the Progress stylesheet and replace the bar-radius token with the indicator token).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/patternfly/components/Progress/progress.scss`:
- Line 226: The forced-colors pseudo-element is still using the bar radius token
instead of the new indicator radius token, which can cause token drift; update
the forced-colors ::before rule to reference the same CSS custom property used
for the indicator (var(--#{$progress}__indicator--BorderRadius)) so both the
indicator and its forced-colors styling use the identical radius token (look for
the ::before selector in the Progress stylesheet and replace the bar-radius
token with the indicator token).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 5f9ec6f6-678f-44fe-ba92-d71142e7a725
📒 Files selected for processing (3)
src/patternfly/components/Progress/progress-status-icon.hbssrc/patternfly/components/Progress/progress-status.hbssrc/patternfly/components/Progress/progress.scss
|
🎉 This PR is included in version 6.5.0-prerelease.59 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes #8188
Swaps icons to the RH set and adds pill border to the entire bar and the indicator.
Summary by CodeRabbit