Skip to content

Commit db1ca42

Browse files
authored
fix(typography): set CodeBlock background to background.recessed (#1916)
1 parent 0d4e7d0 commit db1ca42

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/typography/src/styled/StyledCodeBlock.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ import { getColor, retrieveComponentStyles } from '@zendeskgarden/react-theming'
1111
const COMPONENT_ID = 'typography.codeblock';
1212

1313
const colorStyles = ({ theme }: ThemeProps<DefaultTheme>) => {
14-
const backgroundColor = getColor({
15-
theme,
16-
variable: theme.colors.base === 'light' ? 'background.subtle' : 'background.default'
17-
});
14+
const backgroundColor = getColor({ theme, variable: 'background.recessed' });
1815
const foregroundColor = getColor({ theme, variable: 'foreground.default' });
1916

2017
return css`

0 commit comments

Comments
 (0)