Skip to content

Commit

Permalink
fix(field): supporting text typography not resolving
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 466241475
  • Loading branch information
asyncLiz authored and copybara-github committed Aug 9, 2022
1 parent 647a767 commit a96664b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions field/lib/_filled-field-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ $dark-theme: values(

@function _resolve-theme($theme, $resolvers) {
$theme: label-theme.resolve-theme($theme, $resolvers);
$theme: supporting-text-theme.resolve-theme($theme, $resolvers);
$theme: shape.resolve-theme(
$theme,
map.get($resolvers, shape),
Expand Down
1 change: 1 addition & 0 deletions field/lib/_outlined-field-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ $dark-theme: values(

@function _resolve-theme($theme, $resolvers) {
$theme: label-theme.resolve-theme($theme, $resolvers);
$theme: supporting-text-theme.resolve-theme($theme, $resolvers);
$theme: shape.resolve-theme(
$theme,
map.get($resolvers, shape),
Expand Down
8 changes: 3 additions & 5 deletions field/lib/_supporting-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
justify-content: space-between;
}

.md3-field__supporting-text,
.md3-field__supporting-text-start,
.md3-field__supporting-text-end {
::slotted(:not(:empty)) {
// Can't be an inline display element (<span>) for padding-top to work.
display: inline-flex;
}
// Can't be an inline display element (<span>) for padding-top to work.
display: flex;
}
}

0 comments on commit a96664b

Please sign in to comment.