Skip to content

Commit

Permalink
fix(button): allow overriding min-width and user-select
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 580324948
  • Loading branch information
asyncLiz authored and Copybara-Service committed Nov 7, 2023
1 parent 2b591ca commit 1852238
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions button/internal/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
cursor: pointer;
display: inline-flex;
height: var(--_container-height);
min-width: 64px;
outline: none;
font-family: var(--_label-text-font);
font-size: var(--_label-text-size);
line-height: var(--_label-text-line-height);
font-weight: var(--_label-text-weight);
user-select: none;
-webkit-tap-highlight-color: transparent;
// Override vertical-align with shortest value "top". Vertical-align's
// default "baseline" value causes buttons to be misaligned next to each
Expand Down Expand Up @@ -63,15 +65,13 @@
align-items: center;
justify-content: center;
box-sizing: border-box;
min-inline-size: 64px;
border: none;
outline: none;
user-select: none;
-webkit-appearance: none;
vertical-align: middle;
background: transparent;
text-decoration: none;
inline-size: 100%;
width: 100%;
position: relative;
z-index: 0; // Place content on top of elevation and ripple
height: 100%;
Expand Down

0 comments on commit 1852238

Please sign in to comment.