Add sprite/backdrop should have a discernible text
In order to comply to WCAG 2.0[1], buttons must have discernible text that clearly describe the purpose, so that it can be used by screen readers. [1] https://www.w3.org/TR/2016/NOTE-WCAG20-TECHS-20161007/H65
This commit is contained in:
1 parent
3795729670
commit
d909b03532
1 file changed
+2
@@ -78,6 +78,7 @@ const TargetPane = ({
|
||||
|
||||
<button
|
||||
className={classNames(styles.addButtonWrapper, styles.addButtonWrapperSprite)}
|
||||
title="Add sprite"
|
||||
onClick={onNewSpriteClick}
|
||||
>
|
||||
<img
|
||||
@@ -88,6 +89,7 @@ const TargetPane = ({
|
||||
|
||||
<button
|
||||
className={classNames(styles.addButtonWrapper, styles.addButtonWrapperStage)}
|
||||
title="Add backdrop"
|
||||
onClick={onNewBackdropClick}
|
||||
>
|
||||
<img
|
||||
|
||||
Reference in new issue
Block a user