Skip to content

Commit

Permalink
chore: ensure touch target wrappers are not negative
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 555639643
  • Loading branch information
asyncLiz authored and copybara-github committed Aug 10, 2023
1 parent f574b00 commit 9adb11c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checkbox/internal/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ $_checkmark-bottom-left: 7px, -14px;
}

:host([touch-target='wrapper']) {
margin: calc((48px - var(--_container-size)) / 2);
margin: max(0px, ((48px - var(--_container-size)) / 2));
}

md-focus-ring {
Expand Down
2 changes: 1 addition & 1 deletion radio/internal/_radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $_md-sys-motion: tokens.md-sys-motion-values();
}

:host([touch-target='wrapper']) {
margin: calc((48px - var(--_icon-size)) / 2);
margin: max(0px, ((48px - var(--_icon-size)) / 2));
}

.container {
Expand Down

0 comments on commit 9adb11c

Please sign in to comment.