Skip to content

Commit

Permalink
feat(button): Expand outlined touch target to include side borders
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 306870240
  • Loading branch information
allan-chen authored and copybara-github committed Apr 16, 2020
1 parent 58448de commit ce6cb70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/mdc-button/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ $query: feature-targeting-functions.all()) {
border: $outline-width solid transparent;
}
}

.mdc-button__touch {
@include feature-targeting-mixins.targets($feat-structure) {
left: -$outline-width;
width: calc(100% + 2 * #{$outline-width});
}
}
}

///
Expand Down

0 comments on commit ce6cb70

Please sign in to comment.