From 59544d2cf47abeb64e7ef2bc9cf313f303be32f0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 15 Feb 2019 19:03:24 -0800 Subject: [PATCH] fix: improve a11y, move preview box inside label (#997) --- .../settings/instance/ThemeSettings.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/routes/_components/settings/instance/ThemeSettings.html b/src/routes/_components/settings/instance/ThemeSettings.html index 65ec2680..bcb435e9 100644 --- a/src/routes/_components/settings/instance/ThemeSettings.html +++ b/src/routes/_components/settings/instance/ThemeSettings.html @@ -10,11 +10,13 @@ -
-
{/each} @@ -43,15 +45,18 @@ } .theme-picker { display: flex; - flex-direction: row; align-items: center; } .theme-picker-label { + display: flex; + align-items: center; + } + .theme-picker-label-span { margin: 2px 10px 0; } .theme-preview { - width: 1.5em; - height: 1.5em; + width: 21px; + height: 21px; box-sizing: border-box; border-radius: 2px; margin: 0 2px 0 10px;