Merge pull request #31713 from fidelity-contributions/fix/ui-widget-overlay-light-mode-wrong-background-color

fix(widgetoverlay): light mode wrong background color
This commit is contained in:
Fredrik Adelöw
2026-01-15 23:53:44 +01:00
committed by GitHub
2 changed files with 12 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-home': patch
---
Updated WidgetOverlay color to use `alpha(theme.palette.background.paper, 0.93)` for better theme alignment instead of hardcoded RGBA
@@ -21,7 +21,12 @@ import DialogContent from '@material-ui/core/DialogContent';
import Grid from '@material-ui/core/Grid';
import IconButton from '@material-ui/core/IconButton';
import Tooltip from '@material-ui/core/Tooltip';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import {
alpha,
createStyles,
makeStyles,
Theme,
} from '@material-ui/core/styles';
import DeleteIcon from '@material-ui/icons/Delete';
import SettingsIcon from '@material-ui/icons/Settings';
import { useState } from 'react';
@@ -44,7 +49,7 @@ const useStyles = makeStyles((theme: Theme) =>
},
settingsOverlay: {
position: 'absolute',
backgroundColor: 'rgba(40, 40, 40, 0.93)',
backgroundColor: alpha(theme.palette.background.paper, 0.93),
width: '100%',
height: '100%',
top: 0,