Skip to content
Snippets Groups Projects
Commit a64fbe66 authored by lain's avatar lain
Browse files

Merge branch 'fixSelectOptionStyling' into 'develop'

Fixes selects having unreadable text on some browsers/OSes.

Closes #123

See merge request !296
parents e21f78e5 3373d287
No related branches found
No related tags found
1 merge request!296Fixes selects having unreadable text on some browsers/OSes.
Pipeline #
......@@ -168,6 +168,13 @@ input, textarea, .select {
}
}
option {
color: $fallback--fg;
color: var(--fg, $fallback--fg);
background-color: $fallback--bg;
background-color: var(--bg, $fallback--bg);
}
i[class*=icon-] {
color: $fallback--icon;
color: var(--icon, $fallback--icon)
......
......@@ -3,7 +3,10 @@
<div>{{$t('settings.presets')}}
<label for="style-switcher" class='select'>
<select id="style-switcher" v-model="selected" class="style-switcher">
<option v-for="style in availableStyles" :value="style">{{style[0]}}</option>
<option v-for="style in availableStyles" :value="style" :style="{
backgroundColor: style[1],
color: style[3]
}">{{style[0]}}</option>
</select>
<i class="icon-down-open"/>
</label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment