File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/components/all/src/text Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export type TextVariation = "small" | "bold" | "link" | "link_hidden";
88
99export interface TextProps extends React . HTMLAttributes < HTMLElement > {
1010 margin ?: boolean ;
11- type ?: "huge" | keyof Pick < ReactHTML , "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" > ;
11+ type ?: "huge" | "soft" | keyof Pick < ReactHTML , "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" > ;
1212 variation ?: TextVariation | TextVariation [ ] ;
1313 as ?: keyof ReactHTML | React . ReactElement ;
1414}
@@ -44,6 +44,7 @@ export const Text = ({
4444 let value : keyof ReactHTML ;
4545
4646 switch ( type ) {
47+ case "soft" :
4748 case "huge" : {
4849 value = "h1" ;
4950 break ;
Original file line number Diff line number Diff line change 5656 --font-size : 60px ;
5757}
5858
59+ .soft {
60+ --color : #718096 ;
61+ }
62+
5963// Variations
6064
6165.small {
You can’t perform that action at this time.
0 commit comments