From 9e394004769348bf72f12ba1cfc662bdcfad361e Mon Sep 17 00:00:00 2001 From: JackDotJS Date: Thu, 9 Nov 2023 22:20:07 -0800 Subject: [PATCH] cleanup + accessibility fixes for toggle switches --- globalstyle.css | 11 ++++-- options/options.html | 86 +++++++++++++++++++------------------------- 2 files changed, 44 insertions(+), 53 deletions(-) diff --git a/globalstyle.css b/globalstyle.css index abb70b2..a29f800 100644 --- a/globalstyle.css +++ b/globalstyle.css @@ -38,9 +38,14 @@ a { } .toggle > input { - height: 0; - width: 0; - visibility: hidden; + clip: rect(1px, 1px, 1px, 1px); + clip-path: inset(50%); + height: 1px; + width: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; } .toggle > label { diff --git a/options/options.html b/options/options.html index 4ad9e45..0e2e445 100644 --- a/options/options.html +++ b/options/options.html @@ -34,64 +34,50 @@

Clearing Options

-
-
- Always ask for confirmation before clearing - - -
-
-
-
- Clear data while browser is still open (NOT RECOMMENDED) - - -
-
+ +

Notification Options

-
-
- Enable Notifications - - -
-
-
-
-
- Data successfully cleared - - -
-
-
-
- An error occurred, preventing data removal - - -
-
-
-
- Upcoming data removal reminders - - -
-
+ +
+ + +

Sync Options

-
-
- Use Sync - - -
-
+