Skip to content

Commit

Permalink
refactor(Modal): adjust mask so that focus, scroll bar are not masked
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Feb 12, 2024
1 parent 9ee603e commit c551c4f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/styles/scss/components/modal/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,14 @@
.#{$prefix}--modal--slug
.#{$prefix}--modal-content.#{$prefix}--modal-scroll-content {
mask-image: linear-gradient(
to bottom,
$layer calc(100% - 80px),
transparent calc(100% - 48px),
transparent 100%
);
to bottom,
$layer calc(100% - 80px),
transparent calc(100% - 48px),
transparent 100%
),
linear-gradient(to left, $layer 0, transparent 16px),
linear-gradient(to right, $layer 0, transparent 4px),
linear-gradient(to top, $layer 0, transparent 4px);
}

.#{$prefix}--modal-header
Expand Down

0 comments on commit c551c4f

Please sign in to comment.