Skip to content

Commit

Permalink
fix(DataTable): fix stacking issues with table toolbar + batch actions (
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Jul 24, 2023
1 parent ea0a787 commit a157f0a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
.#{$prefix}--table-toolbar {
// Need for batch actions
position: relative;
z-index: 1;
display: flex;
width: 100%;
min-height: $spacing-09;
Expand Down Expand Up @@ -388,6 +389,7 @@
justify-content: space-between;
background-color: $background-brand;
clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
opacity: 0;
pointer-events: none;
transform: translate3d(0, 48px, 0);
transition: transform $duration-fast-02 motion(standard, productive),
Expand All @@ -401,7 +403,9 @@
}
// 200% to allow tooltips
.#{$prefix}--batch-actions--active {
clip-path: polygon(0 0, 200% 0, 200% 200%, 0 200%);
z-index: 1;
clip-path: polygon(0 0, 300% 0, 300% 300%, 0 300%);
opacity: 1;
pointer-events: all;
transform: translate3d(0, 0, 0);
}
Expand Down

0 comments on commit a157f0a

Please sign in to comment.