Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit f6a2dad

Browse files
mgreenlandnshahan
authored andcommitted
Fix baseline alignment of dropdown-button in Firefox.
A previous change added an overflow property to the dropdown-button so that dropdowns don't wrap. But the overflow property, along with inline-flex display and a bunch of other complicated conditions, triggers this bug in Firefox. It looks like setting a max-width on the dropdown-button is enough to get the desired behavior for material-dropdown-select. So let's do that instead. Also, add a Scuba test so this alignment stops breaking. PiperOrigin-RevId: 176144876
1 parent 8cb1e74 commit f6a2dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/material_select/dropdown_button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ $error-text-color: #d34336;
1212
display: inline-flex;
1313
flex: 1;
1414
flex-direction: column;
15+
max-width: 100%;
1516
min-height: $icon-size;
16-
overflow: hidden;
1717
}
1818

1919
.button {

0 commit comments

Comments
 (0)