Skip to content

Commit 93d14ad

Browse files
authored
Add aria-label to q-editor buttons
A naïve attempt to add aria-label attributes to QEditor buttons
1 parent f0de80b commit 93d14ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/src/components/editor/editor-utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function getBtn (eVm, btn, clickHandler, active = false) {
5151
color: toggled ? btn.toggleColor || eVm.props.toolbarToggleColor : btn.color || eVm.props.toolbarColor,
5252
textColor: toggled && !eVm.props.toolbarPush ? null : btn.textColor || eVm.props.toolbarTextColor,
5353
label: btn.label,
54+
ariaLabel: !(btn.disable ? (typeof btn.disable === 'function' ? btn.disable(eVm) : true) : false) ? btn.tip : null ,
5455
disable: btn.disable ? (typeof btn.disable === 'function' ? btn.disable(eVm) : true) : false,
5556
size: 'sm',
5657
onClick (e) {

0 commit comments

Comments
 (0)