We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d670d4 commit 85b589aCopy full SHA for 85b589a
src/components/overlays/Dialog/Dialog.tsx
@@ -95,6 +95,16 @@ const CLOSE_BUTTON_STYLES: Styles = {
95
width: '5x',
96
height: '5x',
97
placeContent: 'center',
98
+ fill: {
99
+ '': '#dark.0',
100
+ hovered: '#dark.04',
101
+ pressed: '#dark.05',
102
+ },
103
+ color: {
104
+ '': '#dark-02',
105
+ hovered: '#dark-02',
106
+ pressed: '#purple',
107
108
};
109
110
const sizeMap = {
@@ -206,7 +216,9 @@ const DialogContent = forwardRef(function DialogContent(
206
216
if (contextProps.isOpen) {
207
217
setTimeout(() => {
208
218
focusManager?.focusFirst();
209
- setIsCloseDisabled(false);
219
+ setTimeout(() => {
220
+ setIsCloseDisabled(false);
221
+ }, 250);
210
222
});
211
223
} else {
212
224
setIsCloseDisabled(true);
0 commit comments