fix aria and minify

This commit is contained in:
Viktor Rådberg
2023-09-18 12:16:09 +02:00
parent de30682597
commit 22c6852644
8 changed files with 46 additions and 8 deletions

View File

@@ -201,6 +201,7 @@ export const CommanderDamage = ({
<CommanderDamageContainer
key={opponentIndex}
$rotation={player.settings.rotation}
aria-label={`Commander damage bar ${player.index}`}
>
<CommanderDamageButton
key={opponentIndex}
@@ -214,6 +215,7 @@ export const CommanderDamage = ({
e.preventDefault();
}}
$backgroundColor={opponent.color}
aria-label={`Commander damage. Player ${player.index}, opponent ${opponent.index}`}
>
<CommanderDamageTextContainer $rotation={player.settings.rotation}>
<OutlinedText
@@ -247,6 +249,7 @@ export const CommanderDamage = ({
e.preventDefault();
}}
$backgroundColor={opponent.color}
aria-label={`Partner Commander damage. Player ${player.index}, opponent ${opponent.index}`}
>
<CommanderDamageTextContainer $rotation={player.settings.rotation}>
<OutlinedText