Repository navigation
[EuiSelect] [a11y] Remove "NoInitialSelection" option from DOM when a value is selected - #8706
Merged
Merged
Conversation
… `value` is selected Closed: elastic/kibana#217939
alexwizp
marked this pull request as ready for review
May 19, 2025 12:07
acstll
self-requested a review
May 20, 2025 09:51
acstll
approved these changes
May 22, 2025
acstll
left a comment
Contributor
There was a problem hiding this comment.
Thanks @alexwizp for the fix! (and apologies for the delay on the review).
I couldn't test with a screen reader, but I did test manually to make sure it works as expected: the option DOM node is not there after a selection is made 👍
Co-authored-by: Arturo Castillo Delgado <[email protected]>
alexwizp
enabled auto-merge (squash)
May 22, 2025 07:29
Collaborator
💚 Build SucceededHistory
|
Collaborator
💚 Build Succeeded
History
|
tkajtoch
added a commit
to elastic/kibana
that referenced
this pull request
May 28, 2025
`102.1.0` ⏩ `102.2.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Package updates ### `@elastic/eui` #### [`v102.2.0`](https://github.com/elastic/eui/releases/v102.2.0) - Added `useIsDarkMode` utility ([#8701](elastic/eui#8701)) - Added scroll position data as arguments to `virtualizationOptions.onScroll` for the virtualized `EuiDataGrid` ([#8688](elastic/eui#8688)) - Updated secondary fill to `primary` on `EuiIcon` ([#8687](elastic/eui#8687)) - Added white outline on EuiLoadingElastic to make it compliant with the Brand requirements ([#8684](elastic/eui#8684)) **Bug fixes** - Fixed `EuiGlobalToastList` toasts not being cleaned properly when they are added and removed at the same time ([#8692](elastic/eui#8692)) - Resolved an issue where the `EuiDataGrid` cell actions menu was hidden by the header when a cell was clicked to scroll into view ([#8640](elastic/eui#8640)) **Accessibility** - Improved accessibility of `EuiSelect` by removing the empty `<option>` added when `hasNoInitialSelection` is `true` from the DOM, once a user makes a selection. ([#8706](elastic/eui#8706)) - Improved the accessibility of `EuiSuperDatePicker`'s quick select buttons by preventing duplicate screen reader output ([#8686](elastic/eui#8686)) Co-authored-by: Elastic Machine <[email protected]>
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
May 28, 2025
`102.1.0` ⏩ `102.2.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Package updates ### `@elastic/eui` #### [`v102.2.0`](https://github.com/elastic/eui/releases/v102.2.0) - Added `useIsDarkMode` utility ([elastic#8701](elastic/eui#8701)) - Added scroll position data as arguments to `virtualizationOptions.onScroll` for the virtualized `EuiDataGrid` ([elastic#8688](elastic/eui#8688)) - Updated secondary fill to `primary` on `EuiIcon` ([elastic#8687](elastic/eui#8687)) - Added white outline on EuiLoadingElastic to make it compliant with the Brand requirements ([elastic#8684](elastic/eui#8684)) **Bug fixes** - Fixed `EuiGlobalToastList` toasts not being cleaned properly when they are added and removed at the same time ([elastic#8692](elastic/eui#8692)) - Resolved an issue where the `EuiDataGrid` cell actions menu was hidden by the header when a cell was clicked to scroll into view ([elastic#8640](elastic/eui#8640)) **Accessibility** - Improved accessibility of `EuiSelect` by removing the empty `<option>` added when `hasNoInitialSelection` is `true` from the DOM, once a user makes a selection. ([elastic#8706](elastic/eui#8706)) - Improved the accessibility of `EuiSuperDatePicker`'s quick select buttons by preventing duplicate screen reader output ([elastic#8686](elastic/eui#8686)) Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit a5ff0f4)
akowalska622
pushed a commit
to akowalska622/kibana
that referenced
this pull request
May 29, 2025
`102.1.0` ⏩ `102.2.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Package updates ### `@elastic/eui` #### [`v102.2.0`](https://github.com/elastic/eui/releases/v102.2.0) - Added `useIsDarkMode` utility ([elastic#8701](elastic/eui#8701)) - Added scroll position data as arguments to `virtualizationOptions.onScroll` for the virtualized `EuiDataGrid` ([elastic#8688](elastic/eui#8688)) - Updated secondary fill to `primary` on `EuiIcon` ([elastic#8687](elastic/eui#8687)) - Added white outline on EuiLoadingElastic to make it compliant with the Brand requirements ([elastic#8684](elastic/eui#8684)) **Bug fixes** - Fixed `EuiGlobalToastList` toasts not being cleaned properly when they are added and removed at the same time ([elastic#8692](elastic/eui#8692)) - Resolved an issue where the `EuiDataGrid` cell actions menu was hidden by the header when a cell was clicked to scroll into view ([elastic#8640](elastic/eui#8640)) **Accessibility** - Improved accessibility of `EuiSelect` by removing the empty `<option>` added when `hasNoInitialSelection` is `true` from the DOM, once a user makes a selection. ([elastic#8706](elastic/eui#8706)) - Improved the accessibility of `EuiSuperDatePicker`'s quick select buttons by preventing duplicate screen reader output ([elastic#8686](elastic/eui#8686)) Co-authored-by: Elastic Machine <[email protected]>
zacharyparikh
pushed a commit
to zacharyparikh/kibana
that referenced
this pull request
Jun 4, 2025
`102.1.0` ⏩ `102.2.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Package updates ### `@elastic/eui` #### [`v102.2.0`](https://github.com/elastic/eui/releases/v102.2.0) - Added `useIsDarkMode` utility ([elastic#8701](elastic/eui#8701)) - Added scroll position data as arguments to `virtualizationOptions.onScroll` for the virtualized `EuiDataGrid` ([elastic#8688](elastic/eui#8688)) - Updated secondary fill to `primary` on `EuiIcon` ([elastic#8687](elastic/eui#8687)) - Added white outline on EuiLoadingElastic to make it compliant with the Brand requirements ([elastic#8684](elastic/eui#8684)) **Bug fixes** - Fixed `EuiGlobalToastList` toasts not being cleaned properly when they are added and removed at the same time ([elastic#8692](elastic/eui#8692)) - Resolved an issue where the `EuiDataGrid` cell actions menu was hidden by the header when a cell was clicked to scroll into view ([elastic#8640](elastic/eui#8640)) **Accessibility** - Improved accessibility of `EuiSelect` by removing the empty `<option>` added when `hasNoInitialSelection` is `true` from the DOM, once a user makes a selection. ([elastic#8706](elastic/eui#8706)) - Improved the accessibility of `EuiSuperDatePicker`'s quick select buttons by preventing duplicate screen reader output ([elastic#8686](elastic/eui#8686)) Co-authored-by: Elastic Machine <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes: elastic/kibana#217939
The
NoInitialSelectionoption should not be rendered if the user has selected a value. Keeping it inDOMmodel can confuse screen readers, as it is still treated as an available for selection option.