Skip to content

Commit d7ba707

Browse files
committed
Fix bakcground position based on direction
Signed-off-by: Mostafa Ahangarha <[email protected]>
1 parent e18f429 commit d7ba707

File tree

8 files changed

+44
-12
lines changed

8 files changed

+44
-12
lines changed

core/css/inputs.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/inputs.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/inputs.scss

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,20 @@ textarea, div[contenteditable=true] {
266266

267267
/* Override the ugly select arrow */
268268
select {
269-
background: var(--icon-triangle-s-dark) no-repeat right 8px center;
269+
background: var(--icon-triangle-s-dark) no-repeat;
270270
appearance: none;
271271
background-color: var(--color-main-background);
272272
padding-inline-end: 28px !important;
273273
}
274274

275+
body[dir='ltr'] select {
276+
background-position: right 8px center;
277+
}
278+
279+
body[dir='rtl'] select {
280+
background-position: left 8px center;
281+
}
282+
275283
select,
276284
button:not(
277285
.button-vue,
@@ -539,7 +547,7 @@ div.select2-drop {
539547
}
540548
.select2-search input {
541549
min-height: auto;
542-
background: var(--icon-search-dark) no-repeat right center !important;
550+
background: var(--icon-search-dark) no-repeat !important;
543551
background-origin: content-box !important;
544552
}
545553
.select2-results {
@@ -579,6 +587,14 @@ div.select2-drop {
579587
}
580588
}
581589
}
590+
591+
body[dir='ltr'] div.select2-drop .select2-search input {
592+
background-position: right center !important;
593+
}
594+
body[dir='ltr'] div.select2-drop .select2-search input {
595+
background-position: left center !important;
596+
}
597+
582598
.select2-chosen,
583599
#select2-drop {
584600
.avatar,

core/css/server.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)