Skip to content

Commit

Permalink
fix(datagrid): use correct layers, remove no-op z-indexes (#774)
Browse files Browse the repository at this point in the history
- remove rule for missing `datagrid-popover` layer
- remove redundant `datagrid-row-sticky` z-index declaration
- use correct z-index for sticky row elements
- use correct z-index for header row sticky element

closes #773
  • Loading branch information
kevinbuhmann authored Jan 24, 2024
1 parent 7950a51 commit 5599159
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions projects/angular/src/data/datagrid/_datagrid.clarity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,6 @@
line-height: variables.$clr_baselineRem_1;
}
}

.datagrid-action-overflow {
z-index: map.get(variables.$clr-layers, datagrid-popover);
}

.datagrid-row-sticky {
z-index: map.get(variables.$clr-layers, datagrid-row-sticky);
}
}

.datagrid-row-sticky {
Expand All @@ -393,7 +385,7 @@
flex-wrap: nowrap;
position: sticky;
left: 0;
z-index: map.get(variables.$clr-layers, datagrid-header-sticky);
z-index: map.get(variables.$clr-layers, datagrid-row-sticky);

.datagrid-cell:last-child {
&:after {
Expand Down Expand Up @@ -508,7 +500,7 @@

.datagrid-row-sticky {
@include clr-datagrid-header-bg;
z-index: map.get(variables.$clr-layers, datagrid-sticky-header);
z-index: map.get(variables.$clr-layers, datagrid-header-sticky);
}

&:hover {
Expand Down

0 comments on commit 5599159

Please sign in to comment.