Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Added constant for default backgroundColor
Browse files Browse the repository at this point in the history
  • Loading branch information
arcw76183450 committed Jul 6, 2023
1 parent 4e3c749 commit e0e90f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/terra-content-container/src/ContentContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ const ContentContainer = ({
...customProps
}) => {
const theme = React.useContext(ThemeContext);
const lightbackground = 'light';

const contentLayoutClassNames = cx([
`content-container-${fill ? 'fill' : 'static'}`,
customProps.className,
]);

// border will only be visible when setFocusOnContainer is set for content-container
const background = setFocusOnContainer && (backgroundColor || 'light');
const background = setFocusOnContainer && (backgroundColor || lightbackground);
const scrollClassNames = cx(
'normalizer',
theme.className,
Expand Down

0 comments on commit e0e90f3

Please sign in to comment.