Add aria-label to undo/redo buttons (#1115)

This commit is contained in:
Jang Min 2023-02-03 01:10:42 +09:00 committed by GitHub
parent dd5c4ae66e
commit 34d06b17b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,7 @@ export function _TopPanel({
label={intl.formatMessage({ id: 'undo' })} label={intl.formatMessage({ id: 'undo' })}
onClick={app.undo} onClick={app.undo}
id="TD-TopPanel-Undo" id="TD-TopPanel-Undo"
aria-label={intl.formatMessage({ id: 'undo' })}
> >
<UndoIcon /> <UndoIcon />
</ToolButtonWithTooltip> </ToolButtonWithTooltip>
@ -60,6 +61,7 @@ export function _TopPanel({
label={intl.formatMessage({ id: 'redo' })} label={intl.formatMessage({ id: 'redo' })}
onClick={app.redo} onClick={app.redo}
id="TD-TopPanel-Redo" id="TD-TopPanel-Redo"
aria-label={intl.formatMessage({ id: 'redo' })}
> >
<UndoIcon flipHorizontal /> <UndoIcon flipHorizontal />
</ToolButtonWithTooltip> </ToolButtonWithTooltip>