File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/ui-components/src/components Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -843,6 +843,9 @@ export function ToolbarButtonComponent(
843
843
}
844
844
} ;
845
845
846
+ const title = getTooltip ( ) ;
847
+ const disabled = props . enabled === false ;
848
+
846
849
return (
847
850
< Button
848
851
appearance = "stealth"
@@ -851,14 +854,15 @@ export function ToolbarButtonComponent(
851
854
? props . className + ' jp-ToolbarButtonComponent'
852
855
: 'jp-ToolbarButtonComponent'
853
856
}
857
+ aria-disabled = { disabled }
858
+ aria-label = { props . label || title }
854
859
aria-pressed = { props . pressed }
855
- aria-disabled = { props . enabled === false }
856
860
{ ...props . dataset }
857
- disabled = { props . enabled === false }
861
+ disabled = { disabled }
858
862
onClick = { handleClick }
859
863
onMouseDown = { handleMouseDown }
860
864
onKeyDown = { handleKeyDown }
861
- title = { getTooltip ( ) }
865
+ title = { title }
862
866
minimal
863
867
>
864
868
{ ( props . icon || props . iconClass ) && (
You can’t perform that action at this time.
0 commit comments