Skip to content

Commit

Permalink
Merge pull request #17229 from ant-design/adjust-modal-padding-bottom
Browse files Browse the repository at this point in the history
fix: Modal 24px bottom area not trigger mask click
  • Loading branch information
afc163 committed Jun 21, 2019
2 parents 0de4bd8 + 0ea94b9 commit 606ed90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/modal/style/modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
width: auto;
margin: 0 auto;
padding-bottom: 24px;
pointer-events: none;

&-wrap {
position: fixed;
Expand Down Expand Up @@ -40,6 +41,7 @@
border: 0;
border-radius: @border-radius-base;
box-shadow: @shadow-2;
pointer-events: auto;
}

&-close {
Expand Down

2 comments on commit 606ed90

@wangjianio
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以讲下保留 24px 底的原因吗?

@wangjianio
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知道了,应该是为了在 modal 滚动时在最下面留下至少 24px 的空余

Please sign in to comment.