Skip to content

Commit 80630c4

Browse files
author
Florian Kissling
committed
Render .select2-selection__clear before the inline content of .select2-selection__rendered.
As suggested by @njakobsen in select2#3306 (comment), this uses `position: relative` to alter the stacking level of `.select2-selection__clear`. See http://www.w3.org/TR/CSS2/zindex.html#painting-order and https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Understanding_z_index/Stacking_without_z-index. Styles are added to the default Sass for `.select2-selection--single`. Does not include the recompiled distribution CSS. References select2#3306. Tested in Google Chrome v43.0.2357.130 only.
1 parent bd46b7e commit 80630c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/scss/_single.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
text-overflow: ellipsis;
1919
white-space: nowrap;
2020
}
21+
22+
.select2-selection__clear {
23+
position: relative;
24+
}
2125
}
2226

2327
&[dir="rtl"] {

0 commit comments

Comments
 (0)