mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
## Problem - The database role form still uses `formik` and we want to remove it in favour of `react-hook-form` to keep only one form library - The database role form does not follow the design system guidelines ## Solution - Migrate to `react-hook-form` - Apply the design system guidelines - Make sure you can toggle switches by clicking their labels too - Fix accessibility issues ## Notes In the new design system, labels for disabled inputs have the same style as those for enabled inputs ## Screenshots Before: <img width="1325" height="288" alt="image" src="https://github.com/user-attachments/assets/5e558618-3227-42be-b085-4ee388c0aff6" /> <img width="1328" height="402" alt="image" src="https://github.com/user-attachments/assets/9e41a4c2-ab38-4772-b619-548a1a0b9556" /> After: <img width="1281" height="325" alt="image" src="https://github.com/user-attachments/assets/698e526c-5ae3-4e89-bcb5-0bfee1b70f72" /> <img width="1285" height="428" alt="image" src="https://github.com/user-attachments/assets/65b30dc2-9724-4609-9fd0-f32171e37abd" />