File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,30 +68,30 @@ it('transforms bottom direction border shorthand', () => {
68
68
expect ( transformCss ( [ [ 'border-bottom' , '2px dashed #f00' ] ] ) ) . toEqual ( {
69
69
borderBottomWidth : 2 ,
70
70
borderBottomColor : '#f00' ,
71
- borderBottomStyle : 'dashed' ,
71
+ borderStyle : 'dashed' ,
72
72
} )
73
73
} )
74
74
75
75
it ( 'transforms left direction border shorthand' , ( ) => {
76
76
expect ( transformCss ( [ [ 'border-left' , '2px dashed #f00' ] ] ) ) . toEqual ( {
77
77
borderLeftWidth : 2 ,
78
78
borderLeftColor : '#f00' ,
79
- borderLeftStyle : 'dashed' ,
79
+ borderStyle : 'dashed' ,
80
80
} )
81
81
} )
82
82
83
83
it ( 'transforms right direction border shorthand' , ( ) => {
84
84
expect ( transformCss ( [ [ 'border-right' , '2px dashed #f00' ] ] ) ) . toEqual ( {
85
85
borderRightWidth : 2 ,
86
86
borderRightColor : '#f00' ,
87
- borderRightStyle : 'dashed' ,
87
+ borderStyle : 'dashed' ,
88
88
} )
89
89
} )
90
90
91
91
it ( 'transforms top direction border shorthand' , ( ) => {
92
92
expect ( transformCss ( [ [ 'border-top' , '2px dashed #f00' ] ] ) ) . toEqual ( {
93
93
borderTopWidth : 2 ,
94
94
borderTopColor : '#f00' ,
95
- borderTopStyle : 'dashed' ,
95
+ borderStyle : 'dashed' ,
96
96
} )
97
97
} )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const createBorderFactory = (direction = '') =>
33
33
tokens : [ COLOR ] ,
34
34
default : 'black' ,
35
35
} ,
36
- [ `border ${ direction } Style` ] : {
36
+ borderStyle : {
37
37
tokens : [ regExpToken ( / ^ ( s o l i d | d a s h e d | d o t t e d ) $ / ) ] ,
38
38
default : 'solid' ,
39
39
} ,
You can’t perform that action at this time.
0 commit comments