You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement assessibleNameRef for many components (#3442)
Part of #3107
BREAKING CHANGE: The support for ```aria-labelledby``` have been deprecated in favour of new attribute ```accessible-name-ref``` for the following components:
- ComboBox (Requested by SF #1916)
- DatePicker (Requested by SF #2107)
- Input (Requested #1866)
- List (Requested by SF #1886)
- Rating Indicator
- Select (Requested by SF #2107)
- StepInput (Implemented as part of the initial implementation #2804)
- TextArea (Requested by SF #2107)
- WizardStep (Implemented as part of the initial implementation #2400)
The ```aria-labelledby``` has been deprecated for the following component:
- Button (Requested by SF #1425)
The ```accessible-name``` has been deprecated for the following components:
- Link (Requested by SF #2356)
Both ```aria-labelledby``` and ```accessible-name``` have been deprecated for the following components:
- Card (Requested by CBC #2127)
- CheckBox (Requested by SF #2265)
Copy file name to clipboardExpand all lines: packages/base/src/util/AriaLabelHelper.js
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
importfindNodeOwnerfrom"./findNodeOwner.js";
2
2
3
3
constgetEffectiveAriaLabelText=el=>{
4
-
if(!el.ariaLabelledby){
4
+
if(!el.accessibleNameRef){
5
5
if(el.accessibleName){
6
6
returnel.accessibleName;
7
7
}
@@ -19,7 +19,7 @@ const getEffectiveAriaLabelText = el => {
19
19
* @param {String} readyIds (Optional) Defines a string of elements ids. The text of these elements will be returned. If used you should provide either el or ownerDocument
0 commit comments