Skip to content

Commit 1a4a9fd

Browse files
committed
feat(offcanvas): migrate to semantic colors
1 parent e971da2 commit 1a4a9fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Offcanvas/components/DimmingFade.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { CSSTransition } from 'react-transition-group';
33
import styled, { css } from 'styled-components';
44
import { Dimming } from '../../Dimming/Dimming';
5-
import { Colors } from '../../../essentials';
5+
import { getSemanticValue } from '../../../utils/cssVariables';
66

77
const TRANSITION_KEY = 'dimming-fade-animation';
88
const ANIMATION_DURATION = 200;
@@ -28,7 +28,7 @@ const fadeInAnimation = (maxOpacity = 0.6) => css`
2828
`;
2929

3030
const fullscreenDimming = css`
31-
background-color: ${Colors.WHITE};
31+
background-color: ${getSemanticValue('background-primary-default')};
3232
opacity: 1;
3333
`;
3434

0 commit comments

Comments
 (0)