mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-08 12:16:12 -05:00
Merge pull request #971 from curtgrimes/894-ability-keyboard-navigation
Make `<Ability/>` support keyboard navigation
This commit is contained in:
@@ -20,7 +20,7 @@ export function Ability({
|
||||
const sizeNumber = sizeMap[size];
|
||||
|
||||
return (
|
||||
<div
|
||||
<button
|
||||
className="build__ability"
|
||||
style={
|
||||
{
|
||||
@@ -31,6 +31,6 @@ export function Ability({
|
||||
data-cy={`${ability}-ability`}
|
||||
>
|
||||
<Image alt="" path={abilityImageUrl(ability)} />
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -784,6 +784,7 @@ dialog::backdrop {
|
||||
.build__ability {
|
||||
width: var(--ability-size);
|
||||
height: var(--ability-size);
|
||||
padding: 0;
|
||||
border: 2px solid var(--theme-transparent);
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
|
||||
Reference in New Issue
Block a user