Skip to content

Commit a9a62d3

Browse files
author
Kubit
committed
Update styles methods
1 parent 57667b6 commit a9a62d3

File tree

3 files changed

+6
-94
lines changed

3 files changed

+6
-94
lines changed

src/storybook/provider/utilsProvider/utilsProvider.tsx

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/types/styles/typography.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type GenericDeviceTypographyType = {
2323
text_justify?: string;
2424
color?: string;
2525
overflow?: string;
26+
filter?: string;
2627
} & TypographyCustomType &
2728
WordWrapTypes;
2829

src/utils/getStyles/getStyles.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ export const getGenericTypographyStyles = (prop?: TypographyTypes): CSSProp => {
461461
text_justify,
462462
color,
463463
overflow,
464+
filter,
464465
} = prop;
465466

466467
return css`
@@ -482,6 +483,7 @@ export const getGenericTypographyStyles = (prop?: TypographyTypes): CSSProp => {
482483
${text_justify && `text-justify: ${text_justify};`}
483484
${color && `color: ${color};`}
484485
${overflow && `overflow: ${overflow};`}
486+
${filter && `filter: ${filter};`}
485487
`;
486488
};
487489

@@ -584,9 +586,9 @@ export const getPseudoStyles = (
584586

585587
return css`
586588
${pseudoKey} {
587-
${isAfterOrBefore && `content: '${content}'`}
588-
${getGenericStyles(styles)}
589-
${getTypographyStyles(styles)}
589+
${isAfterOrBefore && `content: '${content}'`};
590+
${getGenericStyles(styles)};
591+
${getTypographyStyles(styles)};
590592
}
591593
`;
592594
};

0 commit comments

Comments
 (0)