Skip to content

Commit

Permalink
Made Macros Page Keyboard Navigable
Browse files Browse the repository at this point in the history
  • Loading branch information
atticuscornett committed Mar 19, 2024
1 parent 28bbd07 commit 46eefe6
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Components/PageHandler.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,8 @@
background: none;
border: none;
}
button:focus-visible {
outline: dashed orange 2px;
}
</style>
8 changes: 8 additions & 0 deletions src/Macros/Action/Action.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,15 @@
opacity: 1;
}
.buttons:focus-within {
opacity: 1;
}
.action:hover {
background: var(--background-gray);
}
button:focus-visible {
outline: dashed orange 2px;
}
</style>
4 changes: 4 additions & 0 deletions src/Macros/Action/Actions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,8 @@
.header > button > img {
width: 100%;
}
button:focus-visible {
outline: dashed orange 2px;
}
</style>
4 changes: 4 additions & 0 deletions src/Macros/Components/Macro.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@
background: none;
border: none;
}
button:focus-visible {
border: dashed orange 2px;
}
</style>
4 changes: 4 additions & 0 deletions src/Macros/MacroConfigPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,8 @@
button {
border: none;
}
button:focus-visible {
border: dashed orange 2px;
}
</style>
4 changes: 4 additions & 0 deletions src/Macros/MacroViewingPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
border: none;
}
button:focus-visible {
outline: orange dashed 2px;
}
@media (prefers-color-scheme: light) {
.macro-button {
background-color: var(--primary-blue);
Expand Down

0 comments on commit 46eefe6

Please sign in to comment.