Skip to content

Commit

Permalink
feat(chips): add touch target configs
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 555639743
  • Loading branch information
asyncLiz authored and copybara-github committed Aug 10, 2023
1 parent 9adb11c commit 2300eb6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chips/internal/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
);
}

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

md-focus-ring {
@include focus-ring.theme(
(
Expand Down Expand Up @@ -99,6 +103,10 @@
width: 100%;
}

:host([touch-target='none']) .touch {
display: none;
}

// Outline, separate node for disabled opacity changes
.outline {
border: var(--_outline-width) solid var(--_outline-color);
Expand Down

0 comments on commit 2300eb6

Please sign in to comment.