mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -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}
|
disabled={props.disabled}
|
||||||
|
title={props.intl.formatMessage(props.imgDescriptor)}
|
||||||
onClick={props.onMouseDown}
|
onClick={props.onMouseDown}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt={props.intl.formatMessage({
|
alt={props.intl.formatMessage(props.imgDescriptor)}
|
||||||
defaultMessage: props.imgDescriptor.defaultMessage,
|
|
||||||
description: props.imgDescriptor.description,
|
|
||||||
id: props.imgDescriptor.id
|
|
||||||
})}
|
|
||||||
className={styles.toolSelectIcon}
|
className={styles.toolSelectIcon}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
src={props.imgSrc}
|
src={props.imgSrc}
|
||||||
|
|
Loading…
Reference in a new issue