Skip to content

remove usages of controlTypes.roleLabels#12814

Merged
seanbudd merged 2 commits intomasterfrom
removeRoleLabels
Sep 8, 2021
Merged

remove usages of controlTypes.roleLabels#12814
seanbudd merged 2 commits intomasterfrom
removeRoleLabels

Conversation

@seanbudd
Copy link
Member

@seanbudd seanbudd commented Sep 8, 2021

Link to issue number:

Part of #12549

Summary of the issue:

controlTypes.roleLabels has been deprecated, usages such as .controlTypes.roleLabels[controlTypes.Role.*] should be replaced to their equivalent controlTypes.Role.*.displayString

Description of how this pull request fixes the issue:

Uses the Role enum to determine the role, and use the displayString instead of roleLabels.

Testing strategy:

Search the NVDA repo for "roleLabels".

Unit tests exist in test_controlTypes.TestLabels

Known issues with pull request:

None

Change log entries:

None needed

Code Review Checklist:

  • Pull Request description is up to date.
  • Unit tests.
  • System (end to end) tests.
  • Manual testing.
  • User Documentation.
  • Change log entry.
  • Context sensitive help for GUI changes.
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers

@seanbudd seanbudd merged commit dd15938 into master Sep 8, 2021
@seanbudd seanbudd deleted the removeRoleLabels branch September 8, 2021 09:09
@nvaccessAuto nvaccessAuto added this to the 2021.3 milestone Sep 8, 2021
feerrenrut pushed a commit that referenced this pull request Dec 13, 2021
…lle (PR #13160)

Fixes #13158

PR #12814 replaced usages of deprecated controlTypes.roleLabels with role.displayString. However braille has its own mapping of roles to labels which should be used for abbreviations of roles for braille. The role label used for speech has been mistakenly used for a role of landmark.
feerrenrut pushed a commit that referenced this pull request Dec 14, 2021
…lle (PR #13160)

Fixes #13158

PR #12814 replaced usages of deprecated controlTypes.roleLabels with role.displayString. However braille has its own mapping of roles to labels which should be used for abbreviations of roles for braille. The role label used for speech has been mistakenly used for a role of landmark.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants