Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 5336dc5

Browse files
Siddharth Sharmauser378230
Siddharth Sharma
authored andcommitted
fix(select2): Up-direction when using global theme
select2 theme working well when the direction for the dropdown is set to up, earlier it was working only when theme was set by the directive and not working for globally set theme. Closes #1674
1 parent 9f5d6ec commit 5336dc5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: src/common.css

+8-4
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ body > .select2-container.open {
4646
}
4747

4848
/* Handle up direction Select2 */
49-
.ui-select-container[theme="select2"].direction-up .ui-select-match {
49+
.ui-select-container[theme="select2"].direction-up .ui-select-match,
50+
.ui-select-container.select2.direction-up .ui-select-match {
5051
border-radius: 4px; /* FIXME hardcoded value :-/ */
5152
border-top-left-radius: 0;
5253
border-top-right-radius: 0;
5354
}
54-
.ui-select-container[theme="select2"].direction-up .ui-select-dropdown {
55+
.ui-select-container[theme="select2"].direction-up .ui-select-dropdown,
56+
.ui-select-container.select2.direction-up .ui-select-dropdown {
5557
border-radius: 4px; /* FIXME hardcoded value :-/ */
5658
border-bottom-left-radius: 0;
5759
border-bottom-right-radius: 0;
@@ -63,10 +65,12 @@ body > .select2-container.open {
6365

6466
margin-top: -4px; /* FIXME hardcoded value :-/ */
6567
}
66-
.ui-select-container[theme="select2"].direction-up .ui-select-dropdown .select2-search {
68+
.ui-select-container[theme="select2"].direction-up .ui-select-dropdown .select2-search,
69+
.ui-select-container.select2.direction-up .ui-select-dropdown .select2-search {
6770
margin-top: 4px; /* FIXME hardcoded value :-/ */
6871
}
69-
.ui-select-container[theme="select2"].direction-up.select2-dropdown-open .ui-select-match {
72+
.ui-select-container[theme="select2"].direction-up.select2-dropdown-open .ui-select-match,
73+
.ui-select-container.select2.direction-up.select2-dropdown-open .ui-select-match {
7074
border-bottom-color: #5897fb;
7175
}
7276

0 commit comments

Comments
 (0)