mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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) {
|
if (title) {
|
||||||
attributes["aria-label"] = title;
|
|
||||||
attributes.title = title;
|
attributes.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,6 @@ discourseModule("Integration | Component | Widget | button", function (hooks) {
|
|||||||
|
|
||||||
test(assert) {
|
test(assert) {
|
||||||
assert.equal(query("button").title, "foo bar");
|
assert.equal(query("button").title, "foo bar");
|
||||||
assert.equal(query("button").getAttribute("aria-label"), "foo bar");
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user