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
There are several components which allow you to pass the text for the aria-label on the component's wrapper element. The names of these parameters are inconsistent despite them doing the same thing.
Pagination also includes a visuallyHiddenText param for pagination items. On most components, visuallyHiddenText params are appended to the visible text (for example in summary card actions); pagination is the only example I can find where visuallyHiddenText is passed directly to aria-label, completely overriding any visual label
The documentation for the params is also structured differently. For example the docs for pagination and breadcrumbs don't mention that the value will be used as the aria-label, while they do for cookie banner and service navigation.
Are any of these differences intentional? I think ariaLabel is clearest about what the params actually do, with [thing]AriaLabel for labels of child elements (eg password uses showPasswordAriaLabelText, though again the Text makes that inconsistent)
The text was updated successfully, but these errors were encountered:
There are several components which allow you to pass the text for the
aria-label
on the component's wrapper element. The names of these parameters are inconsistent despite them doing the same thing.Cookie banner and service navigation use
ariaLabel
.Pagination uses
landmarkLabel
and breadcrumbs useslabelText
.Pagination also includes a visuallyHiddenText param for pagination items. On most components,
visuallyHiddenText
params are appended to the visible text (for example in summary card actions); pagination is the only example I can find wherevisuallyHiddenText
is passed directly toaria-label
, completely overriding any visual labelThe documentation for the params is also structured differently. For example the docs for pagination and breadcrumbs don't mention that the value will be used as the
aria-label
, while they do for cookie banner and service navigation.Are any of these differences intentional? I think
ariaLabel
is clearest about what the params actually do, with[thing]AriaLabel
for labels of child elements (eg password usesshowPasswordAriaLabelText
, though again theText
makes that inconsistent)The text was updated successfully, but these errors were encountered: