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

[Unified Search] Remove soon-to-be-deprecated EuiFormControl Sass mixins #193472

Merged
merged 4 commits into from
Sep 24, 2024

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Sep 19, 2024

Summary

As part of our ongoing transition towards CSS-in-JS, EUI is cleaning up and removing several publicly exported Sass mixins and variables with very low usage (0-1 usages across Kibana and Cloud) (full list in elastic/eui#8031).

This PR identifies and replaces one of them (@euiFormControlWithIcon) with their functional padding output equivalents (still using generic EUI Sass variables - there are no plans to immediately deprecate those).

There should be no UI regressions in the unified search query bar compared to main, the right and left padding should remain the same:

Checklist

Delete any items that are not applicable to this PR.

- in an ideal world, we'd use the new Emotion `--euiFormControlRight/LeftIconsCount` CSS variables, but EuiTextArea traditionally has absolutely positioned icons which it doesn't afford for in padding - as this is a very custom implementation of EuiTextArea, setting the padding manually is fine
@cee-chen cee-chen added release_note:skip Skip the PR/issue when compiling release notes EUI v9.0.0 v8.16.0 backport:version Backport to applied version labels labels Sep 19, 2024
@cee-chen cee-chen marked this pull request as ready for review September 19, 2024 20:56
@cee-chen cee-chen requested review from a team as code owners September 19, 2024 20:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/eui-team (EUI)

Copy link
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

Tested it out locally - reviewing several instances of the US bar - all looks the same as before. Thanks!

@kibana-ci
Copy link
Collaborator

💚 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
unifiedSearch 342.9KB 342.8KB -122.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Ikuni17 Ikuni17 merged commit b3d28c8 into elastic:main Sep 24, 2024
21 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 24, 2024
…ins (elastic#193472)

## Summary

As part of our ongoing transition towards CSS-in-JS, EUI is cleaning up
and removing several publicly exported Sass mixins and variables with
very low usage (0-1 usages across Kibana and Cloud) (full list in
elastic/eui#8031).

This PR identifies and replaces one of them (`@euiFormControlWithIcon`)
with their functional padding output equivalents (still using generic
EUI Sass variables - there are no plans to immediately deprecate those).

There should be **no UI regressions** in the unified search query bar
compared to main, the right and left padding should remain the same:

<img width="925" alt=""
src="https://github.com/user-attachments/assets/ac6359af-5169-4642-ba7e-64e42cb57749">

### Checklist

Delete any items that are not applicable to this PR.

- [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))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

(cherry picked from commit b3d28c8)
@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-kbn-query-bar-cleanup branch September 24, 2024 00:15
kibanamachine added a commit that referenced this pull request Sep 24, 2024
…ss mixins (#193472) (#193806)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Unified Search] Remove soon-to-be-deprecated EuiFormControl Sass
mixins (#193472)](#193472)

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

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

<!--BACKPORT [{"author":{"name":"Cee
Chen","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-24T00:04:45Z","message":"[Unified
Search] Remove soon-to-be-deprecated EuiFormControl Sass mixins
(#193472)\n\n## Summary\r\n\r\nAs part of our ongoing transition towards
CSS-in-JS, EUI is cleaning up\r\nand removing several publicly exported
Sass mixins and variables with\r\nvery low usage (0-1 usages across
Kibana and Cloud) (full list
in\r\nhttps://github.com/elastic/eui/pull/8031).\r\n\r\nThis PR
identifies and replaces one of them (`@euiFormControlWithIcon`)\r\nwith
their functional padding output equivalents (still using generic\r\nEUI
Sass variables - there are no plans to immediately deprecate
those).\r\n\r\nThere should be **no UI regressions** in the unified
search query bar\r\ncompared to main, the right and left padding should
remain the same:\r\n\r\n<img width=\"925\"
alt=\"\"\r\nsrc=\"https://github.com/user-attachments/assets/ac6359af-5169-4642-ba7e-64e42cb57749\">\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\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-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"b3d28c8290891b42175c335ea22c550392bbca9c","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","v9.0.0","v8.16.0","backport:version"],"title":"[Unified
Search] Remove soon-to-be-deprecated EuiFormControl Sass
mixins","number":193472,"url":"https://github.com/elastic/kibana/pull/193472","mergeCommit":{"message":"[Unified
Search] Remove soon-to-be-deprecated EuiFormControl Sass mixins
(#193472)\n\n## Summary\r\n\r\nAs part of our ongoing transition towards
CSS-in-JS, EUI is cleaning up\r\nand removing several publicly exported
Sass mixins and variables with\r\nvery low usage (0-1 usages across
Kibana and Cloud) (full list
in\r\nhttps://github.com/elastic/eui/pull/8031).\r\n\r\nThis PR
identifies and replaces one of them (`@euiFormControlWithIcon`)\r\nwith
their functional padding output equivalents (still using generic\r\nEUI
Sass variables - there are no plans to immediately deprecate
those).\r\n\r\nThere should be **no UI regressions** in the unified
search query bar\r\ncompared to main, the right and left padding should
remain the same:\r\n\r\n<img width=\"925\"
alt=\"\"\r\nsrc=\"https://github.com/user-attachments/assets/ac6359af-5169-4642-ba7e-64e42cb57749\">\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\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-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"b3d28c8290891b42175c335ea22c550392bbca9c"}},"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/193472","number":193472,"mergeCommit":{"message":"[Unified
Search] Remove soon-to-be-deprecated EuiFormControl Sass mixins
(#193472)\n\n## Summary\r\n\r\nAs part of our ongoing transition towards
CSS-in-JS, EUI is cleaning up\r\nand removing several publicly exported
Sass mixins and variables with\r\nvery low usage (0-1 usages across
Kibana and Cloud) (full list
in\r\nhttps://github.com/elastic/eui/pull/8031).\r\n\r\nThis PR
identifies and replaces one of them (`@euiFormControlWithIcon`)\r\nwith
their functional padding output equivalents (still using generic\r\nEUI
Sass variables - there are no plans to immediately deprecate
those).\r\n\r\nThere should be **no UI regressions** in the unified
search query bar\r\ncompared to main, the right and left padding should
remain the same:\r\n\r\n<img width=\"925\"
alt=\"\"\r\nsrc=\"https://github.com/user-attachments/assets/ac6359af-5169-4642-ba7e-64e42cb57749\">\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\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-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"b3d28c8290891b42175c335ea22c550392bbca9c"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Cee Chen <[email protected]>
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.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants