File tree Expand file tree Collapse file tree 2 files changed +23
-23
lines changed Expand file tree Collapse file tree 2 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -102,25 +102,28 @@ const DialogElement = tasty({
102102 } ,
103103} ) ;
104104
105- const CLOSE_BUTTON_STYLES : Styles = {
106- display : 'flex' ,
107- position : 'absolute' ,
108- top : '1x' ,
109- right : '1x' ,
110- width : '5x' ,
111- height : '5x' ,
112- placeContent : 'center' ,
113- fill : {
114- '' : '#dark.0' ,
115- hovered : '#dark.04' ,
116- pressed : '#dark.05' ,
117- } ,
118- color : {
119- '' : '#dark-02' ,
120- hovered : '#dark-02' ,
121- pressed : '#purple' ,
105+ const CloseButton = tasty ( Button , {
106+ qa : 'ModalCloseButton' ,
107+ type : 'neutral' ,
108+ styles : {
109+ display : 'flex' ,
110+ position : 'absolute' ,
111+ top : '1x' ,
112+ right : '1x' ,
113+ placeContent : 'center' ,
114+ fill : {
115+ '' : '#dark.0' ,
116+ hovered : '#dark.04' ,
117+ pressed : '#dark.05' ,
118+ } ,
119+ color : {
120+ '' : '#dark-02' ,
121+ hovered : '#dark-02' ,
122+ pressed : '#purple' ,
123+ } ,
124+ border : 0 ,
122125 } ,
123- } ;
126+ } ) ;
124127
125128const sizeMap = {
126129 S : 'small' ,
@@ -307,10 +310,7 @@ const DialogContent = forwardRef(function DialogContent(
307310
308311 < SlotProvider slots = { slots } >
309312 { isDismissable && (
310- < Button
311- qa = "ModalCloseButton"
312- type = "neutral"
313- styles = { CLOSE_BUTTON_STYLES }
313+ < CloseButton
314314 icon = { closeIcon || < CloseIcon /> }
315315 label = { formatMessage ( 'dismiss' ) }
316316 onPress = { ( ) => onDismiss && onDismiss ( ) }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const UnderlayElement = tasty({
2323 '' : 'none' ,
2424 open : 'auto' ,
2525 } ,
26- fill : '#dark .30' ,
26+ fill : '#black .30' ,
2727 overflow : 'hidden' ,
2828 transition :
2929 'transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear' ,
You can’t perform that action at this time.
0 commit comments