File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export const scales = {
56
56
color : 'colors' ,
57
57
backgroundColor : 'colors' ,
58
58
borderColor : 'colors' ,
59
+ opacity : 'opacities' ,
59
60
margin : 'space' ,
60
61
marginTop : 'space' ,
61
62
marginRight : 'space' ,
Original file line number Diff line number Diff line change @@ -530,6 +530,7 @@ export interface Theme {
530
530
colorStyles ?: ObjectOrArray < SystemCssProperties >
531
531
textStyles ?: ObjectOrArray < SystemCssProperties >
532
532
text ?: ObjectOrArray < SystemCssProperties >
533
+ opacities ?: ObjectOrArray < CSS . OpacityProperty >
533
534
/**
534
535
* Enable/disable custom CSS properties/variables if lower browser
535
536
* support is required (for eg. IE 11).
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ const theme: Theme = {
52
52
radii : {
53
53
small : 5 ,
54
54
} ,
55
+ opacities : [ 0 , '50%' ] ,
55
56
}
56
57
57
58
test ( 'returns a function' , ( ) => {
@@ -140,6 +141,7 @@ test('handles all core styled system props', () => {
140
141
fontWeight : 'bold' ,
141
142
color : 'primary' ,
142
143
bg : 'secondary' ,
144
+ opacity : 1 ,
143
145
fontFamily : 'monospace' ,
144
146
lineHeight : 'body' ,
145
147
} ) ( { theme } )
@@ -153,6 +155,7 @@ test('handles all core styled system props', () => {
153
155
paddingBottom : 32 ,
154
156
color : 'tomato' ,
155
157
backgroundColor : 'cyan' ,
158
+ opacity : '50%' ,
156
159
fontFamily : 'Menlo, monospace' ,
157
160
fontSize : 24 ,
158
161
fontWeight : 600 ,
You can’t perform that action at this time.
0 commit comments