react-spectrum
53ddbb66 - Add `isPending` prop to `Button` component which triggers a spinner. (#4900)

Commit
2 years ago
Add `isPending` prop to `Button` component which triggers a spinner. (#4900) * Add `isPending` prop to `Button` component which triggers a spinner. * Fix lint errors * Added test * Only import the necessary package from react-aria * Remove unnecessary timeout ref. * Remove pointer events override * Update test * Add hook to filter out interactions during pending * Added cases to story * update pending story * whitespace fix * update pending story * update pending story * remove spacing override on loader icon * make anchor button-like things disabled when pending * update button docs * Simplify button story * Update isPending tests * Apply progressCircle overBackground to static color buttons * Style display with visibility instead of opacity * Improve vertical centering of spinner * Remove extra dependency * Added more disabled props while pending * Update Pending docs * Rename function so it doesn't sound like a hook * Defense * Use proper naming convention * Simplify story naming * Update test * Add aria-live to pending button when pending * Add check that spinner isn't in document * Remove cruft * Move progressCircle props to component * Fix typos Co-authored-by: Robert Snow <rsnow@adobe.com> * change story action * fix typo * Add additional info to isPending type comment * Fix lint problem * Remove focus and blur from blocked events * prefix isPending with UNSTABLE * remove doc changes for now * Revert unintended change --------- Co-authored-by: Robert Snow <rsnow@adobe.com>
Author
Parents
Loading