Skip to content

Commit

Permalink
unified drawer and modal mask opacity (ant-design#17943)
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 authored Jul 29, 2019
1 parent 68d1ec0 commit d7bbb48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/drawer/style/drawer.less
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
.@{drawer-prefix-cls} {
&-mask {
height: 100%;
opacity: 0.3;
opacity: 1;
transition: none;
animation: antdDrawerFadeIn @animation-duration-slow @ease-base-out;
}
Expand Down Expand Up @@ -193,7 +193,7 @@
height: 0;
background-color: @modal-mask-bg;
opacity: 0;
filter: ~'alpha(opacity=50)';
filter: ~'alpha(opacity=45)';
transition: opacity @animation-duration-slow linear, height 0s ease @animation-duration-slow;
}
&-open {
Expand All @@ -208,6 +208,6 @@
opacity: 0;
}
100% {
opacity: 0.3;
opacity: 1;
}
}
2 changes: 1 addition & 1 deletion components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
@modal-body-padding: 24px;
@modal-header-bg: @component-background;
@modal-footer-bg: transparent;
@modal-mask-bg: fade(@black, 65%);
@modal-mask-bg: fade(@black, 45%);

// Progress
// --
Expand Down

0 comments on commit d7bbb48

Please sign in to comment.