You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: standardize button loading state
Refactors the Button component to support an `isLoading` prop, ensuring consistent loading feedback across the application. Replaces manual "Processing..." text in Auth page with this new standard.
- Adds `isLoading` prop to `Button` component
- Creates `Spinner` component
- Updates Auth page to use `isLoading`
- Improves accessibility with `aria-disabled` and `role="status"`
* fix: improve Spinner accessibility
Wraps the Spinner icon in a div with proper role and label, hiding the decorative icon from screen readers as requested in review.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
**Learning:** The application previously used manual text updates (e.g., "Processing...") for loading states, which causes layout shifts and lacks visual consistency.
5
+
**Action:** Implemented a standardized `isLoading` prop on the `Button` component that automatically disables the button and renders a `Spinner`. This pattern should be used for all async actions going forward to ensure a consistent Neobrutalism look and prevent multiple submissions.
0 commit comments