Skip to content

Commit

Permalink
Made Device Setup Accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
atticuscornett committed Mar 11, 2024
1 parent 6d825e0 commit 161212f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/Components/Selectable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
export let name;
export let id;
export let label;
function handleInput(event){
if (event.key === "Enter"){
document.getElementById(id).checked = true;
}
}
</script>

<input type="radio" value={id} id={id} name={name}>
<label for={id}><div>{label}</div></label>
<label for={id}><div tabindex="0" on:keydown={handleInput}>{label}</div></label>

<style>
input {
Expand Down
4 changes: 4 additions & 0 deletions src/DeviceSetup/AutoDetectResults.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@
color: white;
border: none;
}
button:focus-visible {
outline: white 2px solid;
}
</style>
2 changes: 1 addition & 1 deletion src/DeviceSetup/CompatibilityWarn.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h2>Unrecognized Device</h2>
<h3>The selected device could not be recognized by mimacro, and may not be compatible at this time.<br>
Firmware must be flashed before this device can be used.<br>
<a href="#" on:click={()=>{electronAPI.openLinkInBrowser("https://atticuscornett.github.io/mimacro-docs/#/firmware")}}>
<a href="#" on:click={()=>{electronAPI.openLinkInBrowser("https://atticuscornett.github.io/mimacro-docs/")}}>
A list of firmware can be found in the mimacro docs.
</a>
</h3>
4 changes: 4 additions & 0 deletions src/DeviceSetup/NameDevice.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@
color: white;
border: none;
}
button:focus-visible {
outline: white solid 2px;
}
</style>
4 changes: 4 additions & 0 deletions src/Devices/DeviceSetup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
background: none;
}
button:focus-visible {
outline: orange solid 2px;
}
.closeImg {
width: 30px;
}
Expand Down

0 comments on commit 161212f

Please sign in to comment.