Skip to content

Remove deprecated usages of EuiFormRow's display="columnCompressedSwitch" prop#198709

Merged
Ikuni17 merged 4 commits intoelastic:mainfrom
cee-chen:eui/deprecate-columnCompressedSwitch
Nov 6, 2024
Merged

Remove deprecated usages of EuiFormRow's display="columnCompressedSwitch" prop#198709
Ikuni17 merged 4 commits intoelastic:mainfrom
cee-chen:eui/deprecate-columnCompressedSwitch

Conversation

@cee-chen
Copy link
Contributor

@cee-chen cee-chen commented Nov 1, 2024

Summary

This prop option has been deprecated as of elastic/eui#7968. display="columnCompressed" now automatically accounts for EuiSwitches (via :has CSS) and the extra prop option is no longer needed.

Checklist

  • Unit or functional tests were updated or added to match the most common scenarios
  • Any UI touched in this PR does not create any new axe failures (run axe in browser: FF, Chrome)
  • This renders correctly on smaller devices using a responsive layout. (You can test this in your browser)

- `columnCompressed` now automatically detects switch via `:has()` CSS
@cee-chen cee-chen added release_note:skip Skip the PR/issue when compiling release notes EUI v9.0.0 backport:version Backport to applied version labels v8.17.0 labels Nov 1, 2024
@cee-chen cee-chen marked this pull request as ready for review November 1, 2024 19:30
@cee-chen cee-chen requested review from a team as code owners November 1, 2024 19:30
@elasticmachine
Copy link
Contributor

Pinging @elastic/eui-team (EUI)

Copy link
Contributor

@Heenawter Heenawter left a comment

Choose a reason for hiding this comment

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

@elastic/kibana-presentation changes LGTM - double checked Maps + Canvas and the EuiSwitch components render as expected with columnCompressed 👍

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

I corrected one visual distance for layer settings (see screenshots). The rest looks great, thank you!

Screenshot 2024-11-04 at 10 15 00 Screenshot 2024-11-04 at 10 34 10

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested ML edit for switch in Data Drift view and LGTM

@cee-chen
Copy link
Contributor Author

cee-chen commented Nov 4, 2024

🙌 Thanks so much, all! @elastic/security-generative-ai Any chance y'all can review this PR this week?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
canvas 1.1MB 1.1MB -6.0B
dataVisualizer 615.9KB 615.9KB -6.0B
eventAnnotationListing 227.7KB 227.7KB -6.0B
fileUpload 951.4KB 951.4KB -6.0B
lens 1.5MB 1.5MB -184.0B
maps 3.0MB 3.0MB -78.0B
securitySolution 21.0MB 21.0MB -18.0B
total -304.0B

History

@Ikuni17 Ikuni17 merged commit 83a9acd into elastic:main Nov 6, 2024
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11709526832

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 6, 2024
…Switch"` prop (elastic#198709)

## Summary

This prop option has been deprecated as of
elastic/eui#7968. `display="columnCompressed"`
now automatically accounts for EuiSwitches (via `:has` CSS) and the
extra prop option is no longer needed.

### Checklist

- [x] [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
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))

---------

Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
(cherry picked from commit 83a9acd)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@cee-chen cee-chen deleted the eui/deprecate-columnCompressedSwitch branch November 6, 2024 19:01
kibanamachine added a commit that referenced this pull request Nov 6, 2024
…;display&#x3D;&quot;columnCompressedSwitch&quot;&#x60; prop (#198709) (#199210)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Remove deprecated usages of &#x60;EuiFormRow&#x60;&#x27;s
&#x60;display&#x3D;&quot;columnCompressedSwitch&quot;&#x60; prop
(#198709)](#198709)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Cee
Chen","email":"549407+cee-chen@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-11-06T18:18:43Z","message":"Remove
deprecated usages of `EuiFormRow`'s `display=\"columnCompressedSwitch\"`
prop (#198709)\n\n## Summary\r\n\r\nThis prop option has been deprecated
as of\r\nhttps://github.com/elastic/eui/pull/7968.
`display=\"columnCompressed\"`\r\nnow automatically accounts for
EuiSwitches (via `:has` CSS) and the\r\nextra prop option is no longer
needed.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n\r\n---------\r\n\r\nCo-authored-by:
Marta Bondyra
<4283304+mbondyra@users.noreply.github.com>","sha":"83a9acd79b79fa650c610adb13bff1ced2c707fc","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","v9.0.0","backport:version","v8.17.0"],"title":"Remove
deprecated usages of `EuiFormRow`'s `display=\"columnCompressedSwitch\"`
prop","number":198709,"url":"https://github.com/elastic/kibana/pull/198709","mergeCommit":{"message":"Remove
deprecated usages of `EuiFormRow`'s `display=\"columnCompressedSwitch\"`
prop (#198709)\n\n## Summary\r\n\r\nThis prop option has been deprecated
as of\r\nhttps://github.com/elastic/eui/pull/7968.
`display=\"columnCompressed\"`\r\nnow automatically accounts for
EuiSwitches (via `:has` CSS) and the\r\nextra prop option is no longer
needed.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n\r\n---------\r\n\r\nCo-authored-by:
Marta Bondyra
<4283304+mbondyra@users.noreply.github.com>","sha":"83a9acd79b79fa650c610adb13bff1ced2c707fc"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198709","number":198709,"mergeCommit":{"message":"Remove
deprecated usages of `EuiFormRow`'s `display=\"columnCompressedSwitch\"`
prop (#198709)\n\n## Summary\r\n\r\nThis prop option has been deprecated
as of\r\nhttps://github.com/elastic/eui/pull/7968.
`display=\"columnCompressed\"`\r\nnow automatically accounts for
EuiSwitches (via `:has` CSS) and the\r\nextra prop option is no longer
needed.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n\r\n---------\r\n\r\nCo-authored-by:
Marta Bondyra
<4283304+mbondyra@users.noreply.github.com>","sha":"83a9acd79b79fa650c610adb13bff1ced2c707fc"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels EUI release_note:skip Skip the PR/issue when compiling release notes v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants