Fix dropdown search sizing
When Select2 is not used with a design that universally sets `box-sizing: border-box` to elements, the search box previously would take up more space than expected. This fixed the issue by adding the `box-sizing` rule to the search box. This closes https://github.com/select2/select2/issues/2978.
This commit is contained in:
parent
9906b2f434
commit
65ff76c543
3
dist/css/select2.css
vendored
3
dist/css/select2.css
vendored
@ -83,7 +83,8 @@
|
||||
padding: 4px; }
|
||||
.select2-search--dropdown .select2-search__field {
|
||||
padding: 4px;
|
||||
width: 100%; }
|
||||
width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.select2-search--dropdown.select2-search--hide {
|
||||
display: none; }
|
||||
|
||||
|
2
dist/css/select2.min.css
vendored
2
dist/css/select2.min.css
vendored
File diff suppressed because one or more lines are too long
@ -60,6 +60,7 @@
|
||||
.select2-search__field {
|
||||
padding: 4px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&.select2-search--hide {
|
||||
|
Loading…
x
Reference in New Issue
Block a user