mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
UX: remove aria-label
for buttons when title
attribute exists. (#14529)
Both `aria-label` and `title` have the same value and NVDA reading both the texts while navigating between buttons. NVDA already has an open issue https://github.com/nvaccess/nvda/issues/7841. We're removing `aria-label` until they fix it.
This commit is contained in:
parent
100095af50
commit
1b99f99ff7
@ -38,7 +38,6 @@ export const ButtonClass = {
|
||||
}
|
||||
|
||||
if (title) {
|
||||
attributes["aria-label"] = title;
|
||||
attributes.title = title;
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,6 @@ discourseModule("Integration | Component | Widget | button", function (hooks) {
|
||||
|
||||
test(assert) {
|
||||
assert.equal(query("button").title, "foo bar");
|
||||
assert.equal(query("button").getAttribute("aria-label"), "foo bar");
|
||||
},
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user