Skip to content

Commit 54d1f01

Browse files
authored
fix: overlayBackgroundAlpha for chonk (#88785)
also, remove it from the theme, because it's only used in one place
1 parent e153e2d commit 54d1f01

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

static/app/utils/theme/theme.chonk.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -825,11 +825,6 @@ const generateAliases = (
825825
*/
826826
progressBackground: colors.gray100,
827827

828-
/**
829-
* Overlay for partial opacity
830-
*/
831-
overlayBackgroundAlpha: colors.gray100,
832-
833828
/**
834829
* Tag progress bars
835830
*/

static/app/utils/theme/theme.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,6 @@ export const generateThemeAliases = (colors: Colors) => ({
394394
*/
395395
progressBackground: colors.gray100,
396396

397-
/**
398-
* Overlay for partial opacity
399-
*/
400-
overlayBackgroundAlpha: color(colors.surface200).alpha(0.7).string(),
401-
402397
/**
403398
* Tag progress bars
404399
*/

static/app/views/dashboards/widgetCard/toolbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import styled from '@emotion/styled';
2+
import color from 'color';
23

34
import {Button} from 'sentry/components/core/button';
45
import {IconCopy, IconDelete, IconEdit, IconGrabbable} from 'sentry/icons';
@@ -74,7 +75,7 @@ const ToolbarPanel = styled('div')`
7475
justify-content: flex-end;
7576
align-items: flex-start;
7677
77-
background-color: ${p => p.theme.overlayBackgroundAlpha};
78+
background-color: ${p => color(p.theme.surface300).alpha(0.7).string()};
7879
border-radius: calc(${p => p.theme.borderRadius} - 1px);
7980
`;
8081

0 commit comments

Comments
 (0)