Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(switch): prevent collapsing in flex containers
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 387162016
  • Loading branch information
asyncLiz authored and copybara-github committed Jul 27, 2021
1 parent ea1e1b8 commit 22f390c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mdc-switch/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ $ripple-target: '.mdc-switch__ripple';
background: none;
border: none;
display: inline-flex;
flex-shrink: 0; // Stop from collapsing in flex containers
margin: 0;
outline: none;
overflow: visible;
Expand Down

0 comments on commit 22f390c

Please sign in to comment.