Fix warning in @kbn/grouping's GroupSelector component#215225
Merged
albertoblaz merged 1 commit intoelastic:mainfrom Mar 20, 2025
Merged
Fix warning in @kbn/grouping's GroupSelector component#215225albertoblaz merged 1 commit intoelastic:mainfrom
albertoblaz merged 1 commit intoelastic:mainfrom
Conversation
592b6d1 to
dc7fdf8
Compare
Contributor
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @albertoblaz |
Contributor
|
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
umbopepato
approved these changes
Mar 20, 2025
Member
umbopepato
left a comment
There was a problem hiding this comment.
LGTM! Thanks @albertoblaz for fixing this 😊
Contributor
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/13972557888 |
Contributor
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/13972557829 |
Contributor
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
1 similar comment
Contributor
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
This was referenced Mar 20, 2025
clintandrewhall
pushed a commit
to clintandrewhall/kibana
that referenced
this pull request
Mar 20, 2025
## Summary When a user clicks on the grouping's menu trigger to show all available grouping options, React throws this warning: ``` React does not recognize the `euiTheme` prop on a DOM element. ``` Reason is the `<StyledContextMenu>` component is a mere `<div>` element wrapped by `@emotion` to inject some styling. The rendered `<div>` that results from it can only receive HTML-compliant attributes as props. However, the `euiTheme` is an object that contains many fields, and some of them are not valid. And so, React throws a warning to address it. Solution was to propagate just the border styling instead of the whole `euiTheme` object. ### Screenshot <img width="312" alt="Screenshot 2025-03-19 at 18 37 18" src="https://github.com/user-attachments/assets/bf4c25d3-ed95-41de-8204-0341662aa470" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Identify risks Very minor risk of not applying the correct border styling to the grouping's menu trigger.
JoseLuisGJ
pushed a commit
to JoseLuisGJ/kibana
that referenced
this pull request
Mar 24, 2025
## Summary When a user clicks on the grouping's menu trigger to show all available grouping options, React throws this warning: ``` React does not recognize the `euiTheme` prop on a DOM element. ``` Reason is the `<StyledContextMenu>` component is a mere `<div>` element wrapped by `@emotion` to inject some styling. The rendered `<div>` that results from it can only receive HTML-compliant attributes as props. However, the `euiTheme` is an object that contains many fields, and some of them are not valid. And so, React throws a warning to address it. Solution was to propagate just the border styling instead of the whole `euiTheme` object. ### Screenshot <img width="312" alt="Screenshot 2025-03-19 at 18 37 18" src="https://github.com/user-attachments/assets/bf4c25d3-ed95-41de-8204-0341662aa470" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Identify risks Very minor risk of not applying the correct border styling to the grouping's menu trigger.
cqliu1
pushed a commit
to cqliu1/kibana
that referenced
this pull request
Mar 31, 2025
## Summary When a user clicks on the grouping's menu trigger to show all available grouping options, React throws this warning: ``` React does not recognize the `euiTheme` prop on a DOM element. ``` Reason is the `<StyledContextMenu>` component is a mere `<div>` element wrapped by `@emotion` to inject some styling. The rendered `<div>` that results from it can only receive HTML-compliant attributes as props. However, the `euiTheme` is an object that contains many fields, and some of them are not valid. And so, React throws a warning to address it. Solution was to propagate just the border styling instead of the whole `euiTheme` object. ### Screenshot <img width="312" alt="Screenshot 2025-03-19 at 18 37 18" src="https://github.com/user-attachments/assets/bf4c25d3-ed95-41de-8204-0341662aa470" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Identify risks Very minor risk of not applying the correct border styling to the grouping's menu trigger.
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.
Summary
When a user clicks on the grouping's menu trigger to show all available grouping options, React throws this warning:
Reason is the
<StyledContextMenu>component is a mere<div>element wrapped by@emotionto inject some styling. The rendered<div>that results from it can only receive HTML-compliant attributes as props. However, theeuiThemeis an object that contains many fields, and some of them are not valid. And so, React throws a warning to address it.Solution was to propagate just the border styling instead of the whole
euiThemeobject.Screenshot
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesIdentify risks
Very minor risk of not applying the correct border styling to the grouping's menu trigger.