From 50732ba0107458796fa38c2ed7d3e95b1bee4d9f Mon Sep 17 00:00:00 2001 From: Draconizations Date: Fri, 20 May 2022 13:49:58 +0200 Subject: [PATCH] feat(dashboard): more screenreader friendlyness --- dashboard/src/pages/Public.svelte | 12 ++++++++---- dashboard/src/pages/Settings.svelte | 18 +++++++++--------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/dashboard/src/pages/Public.svelte b/dashboard/src/pages/Public.svelte index 29a58aad..2cd8534e 100644 --- a/dashboard/src/pages/Public.svelte +++ b/dashboard/src/pages/Public.svelte @@ -25,7 +25,7 @@ Submit a system ID to view that system's profile. - {if (event.key === "Enter" && sysInput !== "") navigate(`/profile/s/${sysInput.toLowerCase().trim()}`)}} bind:value={sysInput} /> + {if (event.key === "Enter" && sysInput !== "") navigate(`/profile/s/${sysInput.toLowerCase().trim()}`)}} bind:value={sysInput} aria-label="enter system id to view system profile"/> {#if sysInput !== ""} @@ -50,7 +50,7 @@ Submit a member ID to view that member's profile. - {if (event.key === "Enter" && memberInput !== "") navigate(`/profile/m/${memberInput.toLowerCase().trim()}`)}} bind:value={memberInput} /> + {if (event.key === "Enter" && memberInput !== "") navigate(`/profile/m/${memberInput.toLowerCase().trim()}`)}} bind:value={memberInput} aria-label="enter member id to view member profile"/> {#if memberInput !== ""} @@ -75,7 +75,7 @@ Submit a group ID to view that group's profile. - {if (event.key === "Enter" && groupInput !== "") navigate(`/profile/g/${groupInput.toLowerCase().trim()}`)}} bind:value={groupInput} /> + {if (event.key === "Enter" && groupInput !== "") navigate(`/profile/g/${groupInput.toLowerCase().trim()}`)}} bind:value={groupInput} aria-label="enter group id to view group profile"/> {#if groupInput !== ""} @@ -89,4 +89,8 @@ - \ No newline at end of file + + + + PluralKit | profile + \ No newline at end of file diff --git a/dashboard/src/pages/Settings.svelte b/dashboard/src/pages/Settings.svelte index 8cbe0562..de5754f3 100644 --- a/dashboard/src/pages/Settings.svelte +++ b/dashboard/src/pages/Settings.svelte @@ -59,19 +59,19 @@
- Show banners in the background? {settings.appearance.banner_top = !settings.appearance.banner_top; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> + Show banners in the background? {settings.appearance.banner_top = !settings.appearance.banner_top; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> If enabled, shows banners from the top of the system, member and group pages. - Show banners at the bottom of cards? {settings.appearance.banner_bottom = !settings.appearance.banner_bottom; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> + Show banners at the bottom of cards? {settings.appearance.banner_bottom = !settings.appearance.banner_bottom; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> If enabled, shows banners at the bottom of the system, member and group cards. - Use twemoji? {settings.appearance.twemoji = !settings.appearance.twemoji; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> + Use twemoji? {settings.appearance.twemoji = !settings.appearance.twemoji; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> If enabled, converts all emojis into twemoji. - Colored background? {settings.appearance.color_background = !settings.appearance.color_background; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> + Colored background? {settings.appearance.color_background = !settings.appearance.color_background; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> If enabled, turns the background on member pages into the member's color. @@ -83,11 +83,11 @@ If enabled, uses the opendyslexic font as it's main font. --> - Expand cards by default? {settings.accessibility.expandedcards = !settings.accessibility.expandedcards; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> + Expand cards by default? {settings.accessibility.expandedcards = !settings.accessibility.expandedcards; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> If enabled, lists will be expanded by default (overrides page links). - Use page links instead of cards? {settings.accessibility.pagelinks= !settings.accessibility.pagelinks; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> + Use page links instead of cards? {settings.accessibility.pagelinks= !settings.accessibility.pagelinks; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> If enabled, the list items will not expand, but instead link to the corresponding page.
@@ -108,13 +108,13 @@

Templates allow you to quickly set up a member description with a specific layout. Put in the template in one of the below fields, and access it whenever you create or edit a member. You can set up to 3 templates.

Template 1 -