Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

fix(totp): replace recovery codes keyboard accessibility #7090

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</li>
<li>
{{#hasToken}}
<a class="replace-codes-link">{{#t}}Replace recovery codes{{/t}}</a>
<button class="link replace-codes-link">{{#t}}Replace recovery codes{{/t}}</button>
{{/hasToken}}
</li>
</ul>
Expand Down
13 changes: 13 additions & 0 deletions app/styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ input {
font-weight: inherit;
}

button.link {
color: $link-color-default;
font-size: 14px;
height: 20px;
justify-content: left;
letter-spacing: 0;
width: auto;
}

button.link:hover {
text-decoration: underline;
}

input[type='radio'] {
@include font();
// autoprefixer does not handle appearance, see https://github.com/ai/autoprefixer/issues/205
Expand Down
2 changes: 1 addition & 1 deletion app/styles/modules/_settings-totp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
}
}

.replace-codes-link {
.replace-codes-link, button.link:hover {
background: transparent url('/images/recovery_code_replace.svg') center left no-repeat;
padding-left: 20px;
}
Expand Down