-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "LG-3787: Create waiting experience for address checking, ID r…
- Loading branch information
Showing
19 changed files
with
50 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,7 @@ | ||
@keyframes spinner-button-dot-one { | ||
0% { transform: scale(0); } | ||
25% { transform: scale(1); } | ||
50% { transform: scale(0); } | ||
} | ||
|
||
@keyframes spinner-button-dot-two { | ||
0% { transform: scale(0); } | ||
20% { transform: scale(0); } | ||
45% { transform: scale(1); } | ||
70% { transform: scale(0); } | ||
} | ||
|
||
@keyframes spinner-button-dot-three { | ||
0% { transform: scale(0); } | ||
40% { transform: scale(0); } | ||
65% { transform: scale(1); } | ||
90% { transform: scale(0); } | ||
} | ||
|
||
.spinner-button { | ||
display: inline-block; | ||
} | ||
|
||
.spinner-button--spinner-active { | ||
.spinner-button__content { | ||
position: relative; | ||
|
||
a, | ||
button:not([type]), | ||
[type="submit"], | ||
[type="button"] { | ||
background-color: color('primary-darker'); | ||
color: transparent; | ||
opacity: 1; | ||
} | ||
} | ||
@include u-text('center'); | ||
|
||
.spinner-button__spinner { | ||
display: flex; | ||
height: 12px; | ||
left: 50%; | ||
margin-left: -23px; | ||
margin-top: -6px; | ||
pointer-events: none; | ||
position: absolute; | ||
top: 50%; | ||
width: 46px; | ||
} | ||
|
||
.spinner-button__spinner-dot { | ||
height: 12px; | ||
margin-left: 5px; | ||
width: 12px; | ||
|
||
&::after { | ||
animation-duration: 1.25s; | ||
animation-iteration-count: infinite; | ||
animation-timing-function: linear; | ||
background-color: color('white'); | ||
border-radius: 50%; | ||
content: ''; | ||
display: block; | ||
height: 100%; | ||
transform: scale(0); | ||
width: 100%; | ||
} | ||
|
||
&:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
&:nth-child(1)::after { | ||
animation-name: spinner-button-dot-one; | ||
} | ||
|
||
&:nth-child(2)::after { | ||
animation-name: spinner-button-dot-two; | ||
} | ||
|
||
&:nth-child(3)::after { | ||
animation-name: spinner-button-dot-three; | ||
} | ||
.spinner-button__content { | ||
@include u-display('none'); | ||
} | ||
} | ||
|
||
.spinner-button__action-message { | ||
@include u-text('bold', 'primary-darker'); | ||
@include u-margin-top(2); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
<%# | ||
yields: Button or link markup (required). | ||
locals: | ||
* action_message: Message describing the action being performed, shown visually to users when the | ||
animation has been active for a long time, and immediately to users of assistive | ||
technology. | ||
* class: Additional class names to add to alert wrapper. | ||
%> | ||
<% | ||
content = yield.presence or raise "no block content given" | ||
classes = ['spinner-button'] | ||
classes << local_assigns[:class] if local_assigns[:class] | ||
%> | ||
<%= tag.div class: classes do %> | ||
<div class="spinner-button"> | ||
<div class="spinner-button__content"> | ||
<%= content %> | ||
<span class="spinner-button__spinner" aria-hidden="true"> | ||
<span class="spinner-button__spinner-dot"></span> | ||
<span class="spinner-button__spinner-dot"></span> | ||
<span class="spinner-button__spinner-dot"></span> | ||
</span> | ||
</div> | ||
<% if local_assigns[:action_message] %> | ||
<%= tag.div '', | ||
role: 'status', | ||
data: { message: action_message }, | ||
class: 'spinner-button__action-message usa-sr-only' %> | ||
<% end %> | ||
<% end %> | ||
<%= image_tag asset_url('spinner.gif'), | ||
srcset: "#{asset_url('spinner@2x.gif')} 2x", | ||
height: 144, | ||
width: 144, | ||
alt: '', | ||
aria: { hidden: true }, | ||
class: 'spinner-button__spinner usa-sr-only' %> | ||
</div> | ||
<% javascript_pack_tag_once 'spinner-button' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.