Skip to content

Commit

Permalink
change theme colors to use from themeProvider instead of useEuiTheme …
Browse files Browse the repository at this point in the history
…hook
  • Loading branch information
CAWilson94 committed Dec 12, 2024
1 parent 6c29ece commit 928d775
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ const RiskBadge = styled.div<{
}>`
${({ theme, $severity, $hideBackgroundColor }) => css`
width: fit-content;
padding-right: ${theme.size.xs};
padding-left: ${theme.size.xs};
padding-right: ${theme.eui.euiSizeXS};
padding-left: ${theme.eui.euiSizeXS};
${($severity === 'Critical' || $severity === 'High') &&
!$hideBackgroundColor &&
css`
background-color: ${theme.colors.backgroundLightDanger};
background-color: ${theme.eui.euiColorDanger};
border-radius: 999px; // pill shaped
`};
`}
`;
const TooltipContainer = styled.div`
padding: ${({ theme }) => theme.size.s};
padding: ${({ theme }) => theme.euiSizeS};
`;

export const RiskScoreLevel: React.FC<{
Expand Down

0 comments on commit 928d775

Please sign in to comment.