Skip to content

Commit

Permalink
Make Plugins Page Keyboard Navigable
Browse files Browse the repository at this point in the history
  • Loading branch information
atticuscornett committed Mar 19, 2024
1 parent e092974 commit 28bbd07
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 32 deletions.
68 changes: 36 additions & 32 deletions src/Components/PluginTile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@
background-color: white;
}
button:focus-visible {
border: orange dashed 2px;
}
label {
font-size: 25px;
margin-right: 10px;
Expand Down Expand Up @@ -220,42 +224,42 @@
visibility: visible;
}
.enabled {
border: 0;
background-color: darkred;
color: white;
}
.enabled {
border: 0;
background-color: darkred;
color: white;
}
.disabled {
border: 0;
background-color: darkgreen;
color: white;
}
.disabled {
border: 0;
background-color: darkgreen;
color: white;
}
.close {
position: absolute;
top: 10px;
right: 10px;
border: none;
background: none;
}
.close {
position: absolute;
top: 10px;
right: 10px;
border: none;
background: none;
}
.closeImg {
width: 30px;
}
.closeImg {
width: 30px;
}
.errorIcon {
position: absolute;
right: 33px;
top: 3px;
width: 25px;
}
.errorIcon {
position: absolute;
right: 33px;
top: 3px;
width: 25px;
}
@media (prefers-color-scheme: dark) {
button {
color: white;
background-color: black;
border: white 2px solid;
}
@media (prefers-color-scheme: dark) {
button {
color: white;
background-color: black;
border: white 2px solid;
}
}
</style>
4 changes: 4 additions & 0 deletions src/Plugins.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
user-select: none;
}
button:focus-visible {
outline: 2px white solid;
}
.inline {
display: inline-block;
}
Expand Down

0 comments on commit 28bbd07

Please sign in to comment.