Skip to content

Beautiful Open-Source Form Builder

ESC-659 = Update form themes and app styles for improved accessibility (#834)

Chirag Chhatrala58721d19d9a3
diff --git a/client/css/app.css b/client/css/app.css
index 751dfb2dd..50ce27d20 100644
--- a/client/css/app.css
+++ b/client/css/app.css
@@ -216,14 +216,14 @@
.field-help ol,
.field-help ul,
.field-help li {
- color: var(--color-neutral-400);
+ color: var(--color-neutral-500);
}
:where(.dark) .field-help p,
:where(.dark) .field-help ol,
:where(.dark) .field-help ul,
:where(.dark) .field-help li {
- color: var(--color-neutral-500);
+ color: var(--color-neutral-400);
}
.field-help ol {
diff --git a/client/lib/forms/themes/form-themes.js b/client/lib/forms/themes/form-themes.js
index 5dda662b1..8139094c9 100644
--- a/client/lib/forms/themes/form-themes.js
+++ b/client/lib/forms/themes/form-themes.js
@@ -12,7 +12,7 @@
label: 'text-gray-700 dark:text-gray-300 font-semibold',
input:
'flex-1 appearance-none border border-gray-300 dark:border-gray-600 w-full bg-white text-gray-700 dark:bg-notion-dark-light dark:text-gray-300 dark:placeholder-gray-500 placeholder-gray-400 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-form/100 focus:border-transparent',
- help: 'text-gray-500',
+ help: 'text-gray-500 dark:text-gray-400',
spacing: {
horizontal: {
sm: 'px-2',
@@ -174,7 +174,7 @@
label: 'text-gray-700 dark:text-gray-300 font-medium',
input:
'flex-1 appearance-none border border-gray-300 dark:border-gray-600 w-full bg-white text-gray-700 dark:bg-notion-dark-light dark:text-gray-300 dark:placeholder-gray-500 placeholder-gray-400 focus:outline-hidden focus:ring-2 focus:ring-form/100 focus:border-transparent',
- help: 'text-gray-500',
+ help: 'text-gray-500 dark:text-gray-400',
spacing: {
horizontal: {
sm: 'px-2',
@@ -330,7 +330,7 @@
label: 'text-gray-900 dark:text-gray-100 mb-1 block mt-4',
input:
'rounded-xs border border-notion-input-border dark:border-notion-input-borderDark flex-1 appearance-none w-full bg-notion-input-background dark:bg-notion-dark-light text-gray-900 dark:text-gray-100 dark:placeholder-gray-500 placeholder-gray-400 focus:outline-hidden focus:ring-2 focus:ring-form/40 focus:border-transparent',
- help: 'text-gray-500',
+ help: 'text-gray-500 dark:text-gray-400',
spacing: {
horizontal: {
sm: 'px-2',