Skip to content

Commit

Permalink
fix: 修复 Dialog 会遮挡背景内容的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKam committed Feb 18, 2024
1 parent c715bf6 commit 809c391
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/antd-plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @orca-fe/painter

## 0.3.19

### Patch Changes

- fix: 修复 Dialog 会遮挡背景内容的 bug

## 0.3.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/antd-plus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/antd-plus",
"version": "0.3.18",
"version": "0.3.19",
"description": "Transformer Container",
"keywords": [
"react",
Expand Down
5 changes: 3 additions & 2 deletions packages/antd-plus/src/dialog/Dialog.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const prefix = 'orca-dialog';
export default createUseStyles(
{
wrapper: {
pointerEvents: 'none',
position: 'fixed',
top: '0',
left: '0',
Expand All @@ -28,6 +29,7 @@ export default createUseStyles(
flexDirection: 'column',
opacity: '1',
border: '1px solid transparent',
pointerEvents: 'initial',

'&:focus': {
outline: 'none',
Expand Down Expand Up @@ -65,9 +67,8 @@ export default createUseStyles(
},

hidden: {
pointerEvents: 'none',

'& $root': {
pointerEvents: 'none',
transform: 'scale(0.8)',
opacity: 0,
},
Expand Down

0 comments on commit 809c391

Please sign in to comment.