mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Merge pull request #538 from paulkaplan/add-button-title
Use the tool description as the button title to improve accessibility.
This commit is contained in:
commit
d90d51954f
1 changed files with 2 additions and 5 deletions
|
@ -15,14 +15,11 @@ const ToolSelectComponent = props => (
|
|||
})
|
||||
}
|
||||
disabled={props.disabled}
|
||||
title={props.intl.formatMessage(props.imgDescriptor)}
|
||||
onClick={props.onMouseDown}
|
||||
>
|
||||
<img
|
||||
alt={props.intl.formatMessage({
|
||||
defaultMessage: props.imgDescriptor.defaultMessage,
|
||||
description: props.imgDescriptor.description,
|
||||
id: props.imgDescriptor.id
|
||||
})}
|
||||
alt={props.intl.formatMessage(props.imgDescriptor)}
|
||||
className={styles.toolSelectIcon}
|
||||
draggable={false}
|
||||
src={props.imgSrc}
|
||||
|
|
Loading…
Reference in a new issue