Skip to content

Commit

Permalink
fix(select): add separate touch target element to Select to maintain …
Browse files Browse the repository at this point in the history
…size even when shrunk

PiperOrigin-RevId: 618878824
  • Loading branch information
material-web-copybara authored and copybara-github committed Mar 25, 2024
1 parent 819498d commit 453a624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/mdc-select/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@use '@material/floating-label/variables' as floating-label-variables;
@use '@material/list/mixins' as list-mixins;
@use '@material/list/evolution-mixins' as list-evolution-mixins;
@use '@material/touch-target/touch-target';
@use '@material/notched-outline/mixins' as notched-outline-mixins;
@use '@material/notched-outline/variables' as notched-outline-variables;
@use '@material/rtl/rtl';
Expand Down Expand Up @@ -100,6 +101,10 @@
}
}

.mdc-select__touch {
@include touch-target.touch-target($query: $query, $height: 48px);
}

@include _text($query: $query);

.mdc-select--disabled {
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@material/shape": "^14.0.0",
"@material/theme": "^14.0.0",
"@material/tokens": "^14.0.0",
"@material/touch-target": "14.0.0",
"@material/typography": "^14.0.0",
"tslib": "^2.1.0"
}
Expand Down

0 comments on commit 453a624

Please sign in to comment.