mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-08-03 02:39:00 -04:00
* Use :user-invalid instead of :invalid for form field styling Every theme styled required inputs and selects with :invalid, which matches as soon as an empty required field renders, before the user has even touched it. This made fields such as the username on the "Add user" admin form show a red border on first load, with nothing wrong yet. Switch to :user-invalid, which only matches after the user has interacted with the field (e.g. on blur or submit), so a field only turns red once it is actually flagged as invalid by the user's own input. Browser support for :user-invalid is now good enough across evergreen browsers (~89%, per caniuse) for this to be safe, which was the blocker that stopped a previous attempt at this fix in #3724. Fixes #3647 * CSS: support legacy Gecko invalid styles * Drop legacy -moz-ui-invalid Not important enough --------- Co-authored-by: Gerard Alvear <gerard.alvear@logiqd.me> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>