Added aria-labels to color pickers

This commit is contained in:
Mitchell McCaffrey 2020-04-20 23:54:07 +10:00
parent d2474ae198
commit a5011b58ac
2 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ function MapControls({
cursor: "pointer",
}}
onClick={() => onBrushColorChange(color)}
aria-label={`Brush Color ${color}`}
>
{brushColor === color && (
<Box

View File

@ -160,6 +160,7 @@ function TokenMenu({ tokenClassName, onTokenChange }) {
cursor: "pointer",
}}
onClick={() => handleStatusChange(color)}
aria-label={`Token label Color ${color}`}
>
{currentToken.status && currentToken.status.includes(color) && (
<Box