File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,11 @@ This rule disallows references to color variables that are deprecated in [Primer
16
16
import {Box , themeGet } from ' @primer/components'
17
17
import styled from ' styled-components'
18
18
19
- const Example () = () => < Box color= " some.deprecated.color" > Incorrect< / Box>
19
+ const SystemPropExample () = () => < Box color= " some.deprecated.color" > Incorrect< / Box>
20
20
21
- const StyledExample = styled .div `
21
+ const SxPropExample () = () => < Box sx= {{color: ' some.deprecated.color' }}> Incorrect< / Box>
22
+
23
+ const ThemeGetExample = styled .div `
22
24
color: ${ themeGet (' some.deprecated.color' )} ;
23
25
`
24
26
```
@@ -30,9 +32,11 @@ const StyledExample = styled.div`
30
32
import {Box , themeGet } from ' @primer/components'
31
33
import styled from ' styled-components'
32
34
33
- const Example () = () => < Box color= " some.color" > Correct< / Box>
35
+ const SystemPropExample () = () => < Box color= " some.color" > Incorrect< / Box>
36
+
37
+ const SxPropExample () = () => < Box sx= {{color: ' some.color' }}> Incorrect< / Box>
34
38
35
- const StyledExample = styled .div `
39
+ const ThemeGetExample = styled .div `
36
40
color: ${ themeGet (' some.color' )} ;
37
41
`
38
42
```
You can’t perform that action at this time.
0 commit comments