fix(lightspeed): delete-button-bg-color#3324
Conversation
Signed-off-by: rohitratannagar <rohitratannagar2003@gmail.com>
Changed Packages
|
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3324 +/- ##
==========================================
- Coverage 53.92% 53.91% -0.01%
==========================================
Files 2379 2379
Lines 86125 86132 +7
Branches 23913 23922 +9
==========================================
- Hits 46441 46440 -1
- Misses 39383 39391 +8
Partials 301 301
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
| color: theme.palette.error?.contrastText || '#fff', | ||
| '&:hover': { | ||
| backgroundColor: theme.palette.error?.dark || '#731f00', | ||
| }, |
There was a problem hiding this comment.
I think we should not use this hardcoded color #b1380b . We should use theme specific color.
| color: theme.palette.error?.contrastText || '#fff', | ||
| '&:hover': { | ||
| backgroundColor: theme.palette.error?.dark || '#731f00', | ||
| }, |
There was a problem hiding this comment.
We should not use this hardcoded color #b1380b . We should use theme specific color.
|
closing this in favour of: #3346 |



Summary
theme-aware error colors instead of relying on MUI's color="error" prop
so color="error" falls back to MUI's default (#d32f2f) which differs from the expected RHDH
error color (#b1380b)
correct appearance in both RHDH and the dev workspace
Why
The RHDH theme currently does not define the following error palette colors:
These need to be defined in the RHDH theme (@red-hat-developer-hub/backstage-plugin-theme) so
that any component using color="error" or theme.palette.error gets the correct RHDH-branded
colors instead of MUI defaults. The expected values are:
Once the RHDH theme defines these, the hardcoded fallbacks in this PR become redundant safety
nets.