File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
16
16
import { theme } from '../../essentials/theme' ;
17
17
import { get } from '../../utils/themeGet' ;
18
18
import { deprecatedProperty } from '../../utils/deprecatedProperty' ;
19
+ import { getSemanticValue } from '../../utils/cssVariables' ;
19
20
20
21
interface TextProps
21
22
extends ComponentPropsWithoutRef < 'span' > ,
@@ -54,18 +55,18 @@ function determineTextColor(props: TextProps) {
54
55
}
55
56
56
57
if ( disabled ) {
57
- return get ( inverted ? 'semanticColors. text. disabledInverted' : 'semanticColors. text. disabled' ) ( props ) ;
58
+ return getSemanticValue ( inverted ? 'text- disabledInverted' : 'text- disabled' ) ;
58
59
}
59
60
60
61
if ( secondary || weak ) {
61
- return get ( inverted ? 'semanticColors. text. secondaryInverted' : 'semanticColors. text. secondary' ) ( props ) ;
62
+ return getSemanticValue ( inverted ? 'text- secondaryInverted' : 'text- secondary' ) ;
62
63
}
63
64
64
65
if ( inverted ) {
65
- return get ( 'semanticColors. text. primaryInverted') ( props ) ;
66
+ return getSemanticValue ( ' text- primaryInverted') ;
66
67
}
67
68
68
- return get ( 'semanticColors. text. primary') ( props ) ;
69
+ return getSemanticValue ( ' text- primary') ;
69
70
}
70
71
71
72
const Text = styled . span . attrs ( { theme } ) < TextProps > `
You can’t perform that action at this time.
0 commit comments