Skip to content

Commit b406a26

Browse files
authored
refactor(modal): change from inset to top..left style to support legacy version chrome browser (#1110)
* refactor(modal): change from inset to top..left style to support legacy version chrome browser * chore(changeset): add changeset
1 parent 3bd99b8 commit b406a26

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@channel.io/bezier-react": patch
3+
---
4+
5+
Change modal floating style from `inset` to `top`...`left` position to support legacy browser

packages/bezier-react/src/components/Modals/Modal/Modal.styled.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ import ModalAnimation from './ModalAnimation.styled'
1111

1212
export const DialogPrimitiveOverlay = styled(DialogPrimitive.Overlay)`
1313
position: fixed;
14-
inset: 0;
14+
top: 0;
15+
right: 0;
16+
bottom: 0;
17+
left: 0;
1518
z-index: var(--bezier-modal-z-index);
1619
display: grid;
1720
place-items: center;

0 commit comments

Comments
 (0)