Skip to content

Commit

Permalink
Add 2s animation delay to the loading spinner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene The Dream committed May 27, 2024
1 parent 6047c6a commit 36c608d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Pending

- Add 2s animation delay to the loading spinner. Makes it visually less jarring when loading is quick.

## 2.6.1

- Add option to bypass the commit modal and skip transaction confirmation modal for all widgets (`features.commitModalBypass.bypassAll` and `features.bypassTransactionConfirmation`). This is intended to use by the gateways that expects external wallet to confirm all transactions.
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/lib/data/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const ErrorScopes = {
export const Loading = (
<span
className="spinner-grow spinner-grow-sm me-1"
style={{
animationDelay: "2s",
}}
role="status"
aria-hidden="true"
/>
Expand Down

0 comments on commit 36c608d

Please sign in to comment.