mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
fix[react-devtools] component badge in light mode is now not invisible (#29852)
In light mode, component badges in profiler were invisible due to using the alpha channel to produce the grayish color. Instead I'm using the equivalent RGB without that alpha. **before** In light mode, component badges in profiler were invisible (forwardRef badge in this case):  **after** Profiler tooltip fix. also notice there's no regression on the right menu:  also works in dark mode:  Still visible in components in light mode, whether selected or not:  components dark mode: 
This commit is contained in:
@@ -50,7 +50,7 @@ export const THEME_STYLES: {[style: Theme | DisplayDensity]: any, ...} = {
|
||||
'--color-commit-gradient-text': '#000000',
|
||||
'--color-component-name': '#6a51b2',
|
||||
'--color-component-name-inverted': '#ffffff',
|
||||
'--color-component-badge-background': 'rgba(0, 0, 0, 0.1)',
|
||||
'--color-component-badge-background': '#e6e6e6',
|
||||
'--color-component-badge-background-inverted': 'rgba(255, 255, 255, 0.25)',
|
||||
'--color-component-badge-count': '#777d88',
|
||||
'--color-component-badge-count-inverted': 'rgba(255, 255, 255, 0.7)',
|
||||
|
||||
Reference in New Issue
Block a user