File tree Expand file tree Collapse file tree 5 files changed +13
-7
lines changed
Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -1391,6 +1391,7 @@ export type TextTheme = Typography & {
13911391 dangerColor : Colors [ 'contrasts' ] [ 'red4570' ]
13921392 successColor : Colors [ 'contrasts' ] [ 'green4570' ]
13931393 alertColor : Colors [ 'contrasts' ] [ 'blue4570' ]
1394+ warningColor : Colors [ 'contrasts' ] [ 'orange5782' ]
13941395 paragraphMargin : string | 0
13951396}
13961397
Original file line number Diff line number Diff line change @@ -145,8 +145,9 @@ type: example
145145 < Text color= " secondary" > I & #39 ;m secondary text< / Text >< br/ >
146146 < Text color= " brand" > I & #39 ;m brand text< / Text >< br / >
147147 < Text color= " success" > I & #39 ;m success text< / Text >< br/ >
148+ < Text color= " warning" > I & #39 ;m warning text< / Text >< br / >
148149 < Text color= " danger" > I & #39 ;m danger text< / Text >< br / >
149- < Text color= " alert" > I & #39 ;m alert text< / Text >
150+ < Text color= " alert" > I & #39 ;m alert text - DEPRECATED - DO NOT USE < / Text >
150151< / div>
151152```
152153
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ type TextOwnProps = {
4949 | 'success'
5050 | 'danger'
5151 | 'alert'
52+ | 'warning'
5253 | 'primary-inverse'
5354 | 'secondary-inverse'
5455 /**
@@ -115,6 +116,7 @@ const propTypes: PropValidators<PropKeys> = {
115116 'brand' ,
116117 'success' ,
117118 'danger' ,
119+ 'warning' ,
118120 'alert' ,
119121 'primary-inverse' ,
120122 'secondary-inverse'
Original file line number Diff line number Diff line change @@ -104,7 +104,8 @@ const generateStyle = (
104104 success : { color : componentTheme . successColor } ,
105105 brand : { color : componentTheme . brandColor } ,
106106 danger : { color : componentTheme . dangerColor } ,
107- alert : { color : componentTheme . alertColor }
107+ alert : { color : componentTheme . alertColor } ,
108+ warning : { color : componentTheme . warningColor }
108109 }
109110
110111 const wrapStyle = {
Original file line number Diff line number Diff line change @@ -46,13 +46,14 @@ const generateComponentTheme = (theme: Theme): TextTheme => {
4646 primaryInverseColor : colors ?. contrasts ?. white1010 ,
4747 primaryColor : colors ?. contrasts ?. grey125125 ,
4848
49- secondaryColor : colors ?. contrasts ?. grey4570 ,
49+ secondaryColor : colors ?. contrasts ?. grey5782 ,
5050 secondaryInverseColor : colors ?. contrasts ?. grey1111 ,
5151
52- brandColor : colors ?. contrasts ?. blue4570 ,
53- dangerColor : colors ?. contrasts ?. red4570 ,
54- successColor : colors ?. contrasts ?. green4570 ,
55- alertColor : colors ?. contrasts ?. blue4570 ,
52+ brandColor : colors ?. contrasts ?. blue5782 ,
53+ dangerColor : colors ?. contrasts ?. red5782 ,
54+ successColor : colors ?. contrasts ?. green5782 ,
55+ alertColor : colors ?. contrasts ?. blue5782 ,
56+ warningColor : colors ?. contrasts ?. orange5782 ,
5657
5758 paragraphMargin : `${ spacing . medium } 0`
5859 }
You can’t perform that action at this time.
0 commit comments