Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 7302c9f

Browse files
improvement(tabs): Fix tab indicator precedence issue & icon size css values are applied to icon
PiperOrigin-RevId: 482190989
1 parent ee40081 commit 7302c9f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/mdc-tab/_tab-theme.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ $custom-property-prefix: 'tab';
256256
@include _divider-color(map.get($theme, divider-color));
257257
@include _divider-height(map.get($theme, divider-height));
258258

259+
@include _icon-size(map.get($theme, with-icon-icon-size));
260+
259261
@include _active-icon-color(
260262
(
261263
default: map.get($theme, with-icon-active-icon-color),
@@ -543,9 +545,11 @@ $custom-property-prefix: 'tab';
543545
}
544546

545547
@mixin _icon-size($size) {
546-
@include theme.property('width', $size);
547-
@include theme.property('height', $size);
548-
@include theme.property('font-size', $size);
548+
.mdc-tab__icon {
549+
@include theme.property('width', $size);
550+
@include theme.property('height', $size);
551+
@include theme.property('font-size', $size);
552+
}
549553
}
550554

551555
@mixin _label-text-font-family($font-family) {

0 commit comments

Comments
 (0)