Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rename aria-label to accessible-name #3449

Merged
merged 7 commits into from
Jul 21, 2021
Merged

feat: rename aria-label to accessible-name #3449

merged 7 commits into from
Jul 21, 2021

Conversation

fifoosid
Copy link
Contributor

@fifoosid fifoosid commented Jun 21, 2021

Part of #3107

BREAKING_CHANGE: ariaLabell property is renamed to accessible-name for the following components:

  • Button
  • WIzard
  • WizardStep
  • Card
  • CheckBox
  • ComboBox
  • DatePicker
  • Dialog
  • Input
  • Link
  • List
  • Panel
  • Popover
  • Popup
  • RatingIndicator
  • Select
  • StepInput
  • TextArea

@fifoosid fifoosid changed the title fix: rename aria-label to accessible-name feat: rename aria-label to accessible-name Jun 21, 2021
@ilhan007 ilhan007 added the ACC label Jun 21, 2021
@fifoosid fifoosid closed this Jun 22, 2021
@fifoosid fifoosid reopened this Jun 22, 2021
Copy link
Contributor

@elenastoyanovaa elenastoyanovaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change the jsdoc of the accessible name for all components with something like the description for the panel https://sap.github.io/ui5-webcomponents/master/playground/components/Panel/ ?

@fifoosid fifoosid requested a review from elenastoyanovaa June 23, 2021 14:25
ilhan007
ilhan007 previously approved these changes Jun 28, 2021
@@ -2,8 +2,8 @@ import findNodeOwner from "./findNodeOwner.js";

const getEffectiveAriaLabelText = el => {
if (!el.ariaLabelledby) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this line needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is. Based on this check, getAriaLabelledByTexts(line 12) is called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants