Skip to content

Commit

Permalink
added focus states
Browse files Browse the repository at this point in the history
  • Loading branch information
Resaki1 committed Aug 4, 2023
1 parent 334137e commit 9a6bf6a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/components/Footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ h2 {
padding: 0;
gap: 24px;
align-items: center;

a {
height: 32px;
width: 32px;
display: block;
}
}

.footer__internal-links {
Expand All @@ -74,6 +80,13 @@ h2 {
text-decoration: none;
font-weight: 700;
line-height: 34px;
border: 2px solid transparent;
border-radius: 4px;

&:focus-visible {
outline: none;
border-color: var(--lightmode-pink);
}
}
}

Expand Down Expand Up @@ -124,6 +137,13 @@ h2 {

a {
transition: all 0.1s ease-in-out;
border: 2px solid transparent;
border-radius: 4px;

&:focus-visible {
outline: none;
border-color: var(--lightmode-pink);
}
&:hover {
color: var(--lightmode-pink);
}
Expand Down
9 changes: 8 additions & 1 deletion src/components/ProgressButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,18 @@

.progress-button__button {
all: unset;
padding: 2px;
border: 2px solid transparent;
border-radius: 4px;

&:focus-visible {
border-color: var(--lightmode-pink);
}
}

.progress-button__progress {
position: absolute;
bottom: -8px;
bottom: -4px;
right: 4px;
width: calc(100% - 8px);
height: 4px;
Expand Down

0 comments on commit 9a6bf6a

Please sign in to comment.