Skip to content

Commit c7a74fa

Browse files
committed
fix(Dialog): styles
1 parent cacc464 commit c7a74fa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/overlays/Dialog/Dialog.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ const DialogElement = tasty({
3939
'': 'relative',
4040
'[data-type="panel"]': 'absolute',
4141
},
42-
padding: '1ow',
42+
padding: {
43+
'': '1ow',
44+
'[data-type="overlay"]': 0,
45+
},
4346
width: {
4447
'': '@min-dialog-size @dialog-size 90vw',
4548
'[data-type="fullscreen"]': '90vw 90vw',

src/icons/wrap-icon.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { CubeIconProps, Icon } from './Icon';
55
export function wrapIcon(name: string, icon: ReactNode) {
66
function IconWrapper(props: CubeIconProps) {
77
return (
8+
// use custom size to support legacy icons
89
<Icon qa={name} aria-hidden="true" size="(@icon-size - 2px)" {...props}>
910
{icon}
1011
</Icon>

0 commit comments

Comments
 (0)