mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 03:33:48 +01:00
Add label to toolbar button.
This commit is contained in:
parent
7b464c0ac0
commit
9e43b9953e
@ -40,12 +40,12 @@ export const ToolbarButtonOption = (props: { configuration: ActionConfig }) => {
|
||||
arrow={true}
|
||||
enterDelay={700}
|
||||
>
|
||||
<Box component="span" my="auto" aria-label={props.configuration.tooltip || ''}>
|
||||
<Box component="span" my="auto">
|
||||
<IconButton
|
||||
onClick={props.configuration.onClick}
|
||||
disabled={props.configuration.disabled && props.configuration.disabled()}
|
||||
aria-pressed={selected}
|
||||
// color={selected ? 'secondary' : 'default'}
|
||||
aria-label={props.configuration.tooltip || ''}
|
||||
>
|
||||
{typeof props.configuration.icon === 'function'
|
||||
? props.configuration.icon()
|
||||
|
Loading…
Reference in New Issue
Block a user