-
Notifications
You must be signed in to change notification settings - Fork 4k
[fix] Correct justifyContents to justifyContent in Icon styled-components #13557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ PR preview is ready!
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request fixes a CSS property typo in Icon styled-components, changing justifyContents (incorrect) to justifyContent (correct) in three styled component definitions. The PR description states this is a bug fix that shouldn't change visual appearance, though E2E test snapshots were updated.
Changes:
- Fixed CSS property name from
justifyContentstojustifyContentin StyledSpinnerIcon, StyledIcon, and StyledDynamicIcon - Updated E2E test snapshots for toast and status components across different themes and browsers
Reviewed changes
Copilot reviewed 1 out of 193 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
frontend/lib/src/components/shared/Icon/styled-components.ts |
Corrected justifyContents to justifyContent in three styled components (lines 46, 74, 96) |
| E2E snapshot files (various .png) | Updated visual regression test snapshots for toast and status components |
SummaryThis PR fixes a CSS property typo in the Icon component's styled components, changing the invalid Code QualityThe code change itself is correct - However, there is a critical issue: The fix is incomplete. The same typo exists in two additional locations that were NOT fixed:
justifyContents: "center", // Still has the typo!
justifyContents: "center", // Also has the typo!These missed instances mean emoji icons and Material icons will still have improper centering behavior while other icon types will be fixed, creating inconsistent behavior across the icon system. Test Coverage
Backwards Compatibility
Security & Risk
Recommendations
VerdictCHANGES REQUESTED: The fix is correct but incomplete - there are 2 additional instances of the same typo in This is an automated AI review. Please verify the feedback and use your judgment. |
99e644f to
7f9129d
Compare
Fixed a typo in three styled components (StyledSpinnerIcon, StyledIcon, StyledDynamicIcon) where 'justifyContents' was used instead of the valid CSS property 'justifyContent'. This fixes centering issues for icons including the upload spinner.
7f9129d to
34ea5da
Compare
SummaryThis PR fixes a CSS typo in the Icon component's styled-components, correcting
The PR also includes 196 snapshot updates that reflect the visual improvements from properly centering icons. Code QualityAssessment: Excellent The code changes are minimal, focused, and correct:
The commit messages are descriptive and follow good practices, clearly explaining what was fixed and why. Test CoverageAssessment: Adequate
No additional unit tests are needed for this bug fix. Backwards CompatibilityAssessment: No Breaking Changes This is a bug fix with no API changes:
Security & RiskAssessment: Low Risk
RecommendationsNo blocking issues identified. Minor observations:
VerdictAPPROVED: This is a clean, well-scoped bug fix that corrects an invalid CSS property typo. The change has been properly validated through extensive E2E snapshot updates, introduces no breaking changes, and poses minimal risk to existing functionality. This is an automated AI review. Please verify the feedback and use your judgment. |
sfc-gh-lwilby
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, good catch! It seems like a good idea to add a linting rule as the AI review suggests, but not blocking for this PR.

Describe your changes
Fixed a CSS property typo in the Icon component's styled components. Changed
justifyContentsto the correct property namejustifyContentin several places.Screenshot or video (only for visual changes)
See snaps.
Testing Plan
Follow Up
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.