Skip to content

Commit 1852238

Browse files
asyncLizcopybara-github
authored andcommitted
fix(button): allow overriding min-width and user-select
PiperOrigin-RevId: 580324948
1 parent 2b591ca commit 1852238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

button/internal/_shared.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
cursor: pointer;
1717
display: inline-flex;
1818
height: var(--_container-height);
19+
min-width: 64px;
1920
outline: none;
2021
font-family: var(--_label-text-font);
2122
font-size: var(--_label-text-size);
2223
line-height: var(--_label-text-line-height);
2324
font-weight: var(--_label-text-weight);
25+
user-select: none;
2426
-webkit-tap-highlight-color: transparent;
2527
// Override vertical-align with shortest value "top". Vertical-align's
2628
// default "baseline" value causes buttons to be misaligned next to each
@@ -63,15 +65,13 @@
6365
align-items: center;
6466
justify-content: center;
6567
box-sizing: border-box;
66-
min-inline-size: 64px;
6768
border: none;
6869
outline: none;
69-
user-select: none;
7070
-webkit-appearance: none;
7171
vertical-align: middle;
7272
background: transparent;
7373
text-decoration: none;
74-
inline-size: 100%;
74+
width: 100%;
7575
position: relative;
7676
z-index: 0; // Place content on top of elevation and ripple
7777
height: 100%;

0 commit comments

Comments
 (0)