-
Notifications
You must be signed in to change notification settings - Fork 284
fix(ui5-split-button): announce accessible name before instructions #13901
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
Open
Todor-ads
wants to merge
7
commits into
main
Choose a base branch
from
split_button_annonce_order
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+5
−11
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fdce14a
fix(ui5-split-button): announce accessible name before instructions
Todor-ads b5a4581
fix(ui5-split-button): announce accessible name before instructions
Todor-ads ae867ef
fix(ui5-split-button): announce accessible name before instructions
Todor-ads bdfc505
Merge branch 'main' into split_button_annonce_order
Todor-ads c8183b1
fix(ui5-split-button): fix indentation in SplitButtonTemplate
Todor-ads b2bdc38
fix(ui5-split-button): announce accessible name before instructions
Todor-ads 5410767
fix(ui5-split-button): announce accessible name before instructions
Todor-ads File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ import SplitButtonTemplate from "./SplitButtonTemplate.js"; | |
| // Styles | ||
| import SplitButtonCss from "./generated/themes/SplitButton.css.js"; | ||
|
|
||
| type SplitButtonRootAccAttributes = Pick<AccessibilityAttributes, "hasPopup" | "roleDescription" | "title" | "ariaKeyShortcuts">; | ||
| type SplitButtonRootAccAttributes = Pick<AccessibilityAttributes, "hasPopup" | "title" | "ariaKeyShortcuts">; | ||
| type SplitButtonArrowButtonAccAtributes = Pick<AccessibilityAttributes, "hasPopup" | "expanded" | "title">; | ||
| type SplitButtonAccessibilityAttributes = {root?: SplitButtonRootAccAttributes, arrowButton?: SplitButtonArrowButtonAccAtributes} | ||
|
|
||
|
|
@@ -224,8 +224,6 @@ class SplitButton extends UI5Element { | |
| * - **root**: Attributes that will be applied to the main (text) button. | ||
| * - **hasPopup**: Indicates the presence and type of popup triggered by the button. | ||
| * Accepts string values: `"dialog"`, `"grid"`, `"listbox"`, `"menu"`, or `"tree"`. | ||
| * - **roleDescription**: Provides a human-readable description for the role of the button. | ||
| * Accepts any string value. | ||
| * - **title**: Specifies a tooltip or description for screen readers. | ||
| * Accepts any string value. | ||
| * - **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or give focus to the button. | ||
|
|
@@ -469,7 +467,6 @@ class SplitButton extends UI5Element { | |
| return { | ||
| root: { | ||
| hasPopup: this.accessibilityAttributes?.root?.hasPopup, | ||
| roleDescription: this.accessibilityAttributes?.root?.roleDescription || (this._hideArrowButton ? undefined : SplitButton.i18nBundle.getText(SPLIT_BUTTON_DESCRIPTION)), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Тhe issue is already fixed, but I would also remove the aria-roledescription attribute from the SplitButtonTemplate for the group element now as aria-roledescription is not announced by JAWS. We've placed the role description text in the aria-labelledby attribute. |
||
| title: this.accessibilityAttributes?.root?.title, | ||
| ariaKeyShortcuts: this.accessibilityAttributes?.root?.ariaKeyShortcuts, | ||
| }, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we remove the roleDescription from the acc attributes in SplitButton, we should remove it also from ui5-ai-button, because the ui5-ai-button is using ui5-split-button in it's template and the property roleDescription from ui5-ai-button acc attributes will not reflect nowhere. There are some ui5-ai-button samples which are setting the property roleDescription, so they also should be enhanced. Also this regression in the acc behaviour of the ui5-ai-button should be discussed with acc expert. @unazko what do you think about this issue.