Skip to content

[EuiSuperSelect] Fix regenerating and missing IDs#5197

Merged
cee-chen merged 6 commits intoelastic:masterfrom
cee-chen:use-generated-html-id-super-select
Sep 20, 2021
Merged

[EuiSuperSelect] Fix regenerating and missing IDs#5197
cee-chen merged 6 commits intoelastic:masterfrom
cee-chen:use-generated-html-id-super-select

Conversation

@cee-chen
Copy link
Copy Markdown
Contributor

@cee-chen cee-chen commented Sep 16, 2021

Summary

  • Fixes an accessibility ID that regenerates on component rerender
  • Fixes an unnecessary aria-labelledby that renders as undefined

Related parent PR:

Checklist

N/A, internal/tech debt only - changelog will be in parent #5195 PR

@cee-chen cee-chen requested a review from 1Copenut September 16, 2021 22:20
@cee-chen cee-chen added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Sep 16, 2021
Copy link
Copy Markdown
Contributor

@1Copenut 1Copenut left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor Author

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

QA

};

const screenReaderId = htmlIdGenerator()();
const screenReaderId = useGeneratedHtmlId();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Before:

After:

@cee-chen
Copy link
Copy Markdown
Contributor Author

Hahaha sorry, you're too fast! I was still slowly writing up my comments 😂 🐢

@1Copenut
Copy link
Copy Markdown
Contributor

Hahaha sorry, you're too fast! I was still slowly writing up my comments 😂 🐢

My apologies, I should have taken a pause before approving. I took a second look after I saw your comment and responded in kind.

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_5197/

@cee-chen cee-chen enabled auto-merge (squash) September 20, 2021 17:00
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_5197/

@cee-chen cee-chen merged commit 17e44b6 into elastic:master Sep 20, 2021
@cee-chen cee-chen deleted the use-generated-html-id-super-select branch September 20, 2021 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) tech debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants