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

SelectBox: Set "role" and "aria-labelledby" when fieldTemplate is rendered (T1230635) #27403

Closed
wants to merge 16 commits into from

Conversation

jdvictoria
Copy link
Contributor

No description provided.

@jdvictoria jdvictoria self-assigned this May 16, 2024
@jdvictoria jdvictoria requested review from AlexanderMoiseev and a team May 20, 2024 06:03
@jdvictoria jdvictoria changed the title SelectBox: Set "role" and "aria-label" when fieldTemplate is rendered (T1230635) SelectBox: Set "role" and "aria-labelledby" when fieldTemplate is rendered (T1230635) May 21, 2024
@@ -376,6 +381,7 @@ const DropDownEditor = TextBox.inherit({

this._integrateInput();
isFocused && eventsEngine.trigger($input, 'focus');
isFocused && this._setFieldAria();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we call _setFieldAria method when input is focused only?

@@ -497,11 +497,9 @@ const TextEditorBase = Editor.inherit({
const ariaLabel = inputAttr?.['aria-label'];
const labelId = this._label.getId();

const value = ariaLabel ? undefined : labelId;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we should change implementation of this method?

@jdvictoria jdvictoria closed this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants