Skip to content

Commit 5c9e15e

Browse files
committed
fixup! fix(material-experimental/mdc-table): extract variables and flex based tables styles into private mixin
1 parent 8628826 commit 5c9e15e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/material-experimental/mdc-table/table.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@import '../../material/table/table-flex-styles';
55

66
@include mdc-data-table-core-styles($query: $mat-base-styles-without-animation-query);
7-
@include _mat-table-flex-styles;
7+
@include mat-private-table-flex-styles;
88

99
.mat-table-sticky {
1010
@include vendor-prefixes.position-sticky;

src/material/table/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sass_library(
4040

4141
sass_library(
4242
name = "table_flex_scss_lib",
43-
src = "_table-flex-styles.scss",
43+
srcs = ["_table-flex-styles.scss"],
4444
deps = ["//src/material/core:core_scss_lib"],
4545
)
4646

src/material/table/_table-flex-styles.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ $mat-header-row-height: 56px;
55
$mat-row-height: 48px;
66
$mat-row-horizontal-padding: 24px;
77

8-
@mixin _mat-table-flex-styles {
8+
// Only use tag name selectors here since the styles are shared between MDC and non-MDC
9+
@mixin mat-private-table-flex-styles {
910
mat-table {
1011
display: block;
1112
}

src/material/table/table.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@use '../core/style/vendor-prefixes';
22
@import './table-flex-styles';
33

4-
@include _mat-table-flex-styles;
4+
@include mat-private-table-flex-styles;
55

66
/**
77
* Native HTML table structure

0 commit comments

Comments
 (0)