From 936323e430bac47fc2cf37f5eee9acde45ea5257 Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Fri, 3 Dec 2021 23:08:20 +0100 Subject: [PATCH] Show downwards arrow on SelectButton (#1521) * Show downwards arrow on SelectButton The arrow wasn't showing because the button linear-gradient background overrides the background-image for the arrow. Select can't have pseudo-elements, so I had to add an extra div. * Remove height definition to fix text cutting off on Windows. * Hide default arrow in light theme to keep consistency with dark theme, where the arrow has to be custom due to the button gradient. * Use alternative approach to prevent text getting cropped and add height definition back again. Co-Authored-By: Hikaru Y. <47855854+hikaru-y@users.noreply.github.com> * Adjust arrow position for rtl Co-authored-by: Hikaru Y. <47855854+hikaru-y@users.noreply.github.com> --- ts/components/SelectButton.svelte | 44 ++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/ts/components/SelectButton.svelte b/ts/components/SelectButton.svelte index 29df4027c..bb1fbb6ec 100644 --- a/ts/components/SelectButton.svelte +++ b/ts/components/SelectButton.svelte @@ -5,6 +5,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - +