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

Commit

Permalink
bug(UIKIT-1719,TagBadge): Исправлено применение цвета к TagBadge (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan1caisreal authored Aug 23, 2024
1 parent de57b99 commit fc3579a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/components/src/Tag/styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Chip, type ChipProps } from '@mui/material';
import { badgeClasses } from '@mui/base';

import { styled } from '../styles';
import { type Theme } from '../theme';
Expand Down Expand Up @@ -328,21 +327,4 @@ export const StyledTag = styled(Chip, {
width: 16px;
height: 16px;
}
& .${badgeClasses.badge} {
${({ theme, customColor, customVariant }) =>
(customColor === 'grey' || customColor === 'default') &&
customVariant === 'light' &&
`
background-color: ${theme.palette.grey[800]};
color: ${theme.palette.common.white};
`};
${({ theme, customColor, customVariant }) =>
(customColor === 'grey' || customColor === 'default') &&
customVariant === 'contained' &&
`
color: ${theme.palette.grey[800]};
`};
}
`;

0 comments on commit fc3579a

Please sign in to comment.