Skip to content

Commit 84bf43e

Browse files
committed
Only copy text to aria_label if there was no aria_label attribute originally.
1 parent 8eb01db commit 84bf43e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/glow/primitives.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3241,7 +3241,10 @@
32413241
get text() {return attrs.text},
32423242
set text(value) {
32433243
attrs.text = value
3244-
$(attrs.jbutton).html(attrs.text).attr('aria-label', value)
3244+
$(attrs.jbutton).html(attrs.text)
3245+
if (!attrs.aria_label) {
3246+
$(attrs.jbutton).attr('aria-label', value)
3247+
}
32453248
},
32463249
get textcolor() {return attrs.color}, // legacy name; no apparent reason why it was "textcolor" instead of "color"
32473250
set textcolor(value) {

0 commit comments

Comments
 (0)