Skip to content

Commit

Permalink
fix(grid): fix styles for system theme
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Dec 24, 2024
1 parent 36512e5 commit 7503129
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions projects/extensions/grid/grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
.mtx-grid-checkbox-cell {
width: 60px;
min-width: 60px;
padding: 0 calc((60px - var(--mdc-checkbox-state-layer-size)) / 2);
padding: 0 calc((60px - var(--mdc-checkbox-state-layer-size, 40px)) / 2);
}
}

Expand All @@ -157,7 +157,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
display: flex;
justify-content: space-between;
align-items: center;
min-height: var(--mat-table-header-container-height);
min-height: var(--mat-table-header-container-height, 56px);
padding: 8px;
box-sizing: border-box;

Expand Down Expand Up @@ -208,7 +208,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
.mtx-grid-statusbar {
display: flex;
align-items: center;
min-height: var(--mat-table-header-container-height);
min-height: var(--mat-table-header-container-height, 56px);
padding: 8px;
box-sizing: border-box;

Expand All @@ -231,9 +231,8 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
display: inline-block;
vertical-align: middle;


@include token-utils.use-tokens($_tokens...) {
$compat-size: token-utils.get-token-variable(row-expand-button-size);
$compat-size: token-utils.get-token-variable(row-expand-button-size, 40px);

width: var(--mdc-icon-button-state-layer-size, $compat-size);
height: var(--mdc-icon-button-state-layer-size, $compat-size);
Expand All @@ -243,7 +242,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
.mtx-grid-expansion-detail {
display: flex;
align-items: center;
min-height: var(--mat-table-row-item-container-height);
min-height: var(--mat-table-row-item-container-height, 52px);
overflow: hidden;
}

Expand Down

0 comments on commit 7503129

Please sign in to comment.