Skip to content

Commit

Permalink
style: adds outline offset to make focus state more accessible and clear
Browse files Browse the repository at this point in the history
Relates #119
  • Loading branch information
nichgalzin committed Nov 12, 2024
1 parent af2657d commit bd0a745
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ button:disabled {
cursor: not-allowed;
}

button:focus {
outline-offset: 4px;
transition: none;
}

/*------------------------------------*\
Components
\*------------------------------------*/
Expand Down
5 changes: 5 additions & 0 deletions src/components/popup-components/PopupInfo/PopupInfo.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ button {
font-size: inherit;
}

button:focus {
outline-offset: 4px;
transition: none;
}

.info-panel__inactive {
display: none;
transform: translateX(200%);
Expand Down

0 comments on commit bd0a745

Please sign in to comment.