[Visual Refresh][Discover] Update hover styles for tables#229928
[Visual Refresh][Discover] Update hover styles for tables#229928
Conversation
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
|
Cloud deployment initiated, see credentials at: https://buildkite.com/elastic/kibana-deploy-cloud-from-pr/builds/321 |
|
Deployment is up for testing: |
|
Thank you! From my side looks good and as we discussed. |
|
@elasticmachine merge upstream |
|
Count me as a +1 to @l-suarez's comment about the hover state. Even in the GIF she shared it's very hard for me to tell at a glance which row she's hovering over despite the cell border. I now have to track where the cell border is and work horizontally from there to identify the other cells in the same row. The old approach with row hover was a lot better for usability IMO, at least for me. |
|
@acstll when you get back to it, here is the comment in Slack with a slightly different proposal. Please let me know what you think. |
|
@elasticmachine merge upstream |
|
merge conflict between base and head |
4ab3342 to
f61f618
Compare
elastic_eui.stripes_hover.tgz
Outdated
There was a problem hiding this comment.
no, these are just for visually testing the latest changes now, before they go out on the EUI side (and save some time); if the changes are OK, we can revert f61f618 and the regular EUI package update will do
btw, do you know how can I know if the cloud deployment is running? I remember having some checkboxes but they're gone and I couldn't find a way to check what's happening… 🙏 I got it 👍
There was a problem hiding this comment.
these are the changes in EUI I was referring to: elastic/eui#8983
|
Deployment is up for testing again: 🔗 https://kibana-pr-229928.kb.us-west2.gcp.elastic-cloud.com/ |
|
@elasticmachine merge upstream |
|
quick status update:
|
3bb0441 to
b164866
Compare
…or on hover in favor of EUI defaults
5df16a4 to
0836093
Compare
|
@elasticmachine merge upstream |
⏳ Build in-progress, with failures
Failed CI StepsTest Failures
History
cc @acstll |
|
@jbudz the FTR failures seem unrelated to the changes in the PR — any ideas? 🙏 |
General flakiness upstream, they passed on retries. The build is green and this PR can be merged if ready. |
## Summary This PR updates styles in tables affecting background colors and hover states, aligning with current design spec. - PR with changes in EUI → elastic/eui#8769 - Additional context behind design decision → elastic/eui#8461 (comment) -⚠️ `2025-08-27` Design spec was [updated to add hover state for stripes](#229928 (comment)) → elastic/eui-private#360 (comment) 🔒 ## Changes - Remove custom background hover color for rows, in both data grids (main and document/table) to leverage EUI's defaults [bed13fe](895c91b) - Use new `backgroundBaseInteractiveSelect` token for background color of expanded rows (when the document flyout is open [9d104c8](b164866) ### Previous Changes (initial iteration, no longer part of the PR) - ~~Remove custom background hover color for rows, in both data grids (main and document/table) bff52d8~~ - ~~Use new `backgroundBaseInteractiveSelect` token for background color of expanded rows (when the document flyout is open) 5a1f1f5~~ - ~~Use new `components.dataGridRowBackgroundMarked` token for background color in surrounding documents page e5528f5~~ ### 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)~~ - [ ] ~~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~~ - [ ] ~~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)~~ - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Identify risks Only visual changes for colors on table rows, no performance regression risk. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…9928) ## Summary This PR updates styles in tables affecting background colors and hover states, aligning with current design spec. - PR with changes in EUI → elastic/eui#8769 - Additional context behind design decision → elastic/eui#8461 (comment) -⚠️ `2025-08-27` Design spec was [updated to add hover state for stripes](elastic#229928 (comment)) → elastic/eui-private#360 (comment) 🔒 ## Changes - Remove custom background hover color for rows, in both data grids (main and document/table) to leverage EUI's defaults [bed13fe](elastic@895c91b) - Use new `backgroundBaseInteractiveSelect` token for background color of expanded rows (when the document flyout is open [9d104c8](elastic@b164866) ### Previous Changes (initial iteration, no longer part of the PR) - ~~Remove custom background hover color for rows, in both data grids (main and document/table) bff52d8~~ - ~~Use new `backgroundBaseInteractiveSelect` token for background color of expanded rows (when the document flyout is open) 5a1f1f5~~ - ~~Use new `components.dataGridRowBackgroundMarked` token for background color in surrounding documents page e5528f5~~ ### 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)~~ - [ ] ~~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~~ - [ ] ~~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)~~ - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Identify risks Only visual changes for colors on table rows, no performance regression risk. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>



Summary
This PR updates styles in tables affecting background colors and hover states, aligning with current design spec.
EuiDataGridandEuiTablehover consistent eui#87692025-08-27Design spec was updated to add hover state for stripes → https://github.com/elastic/eui-private/issues/360#issuecomment-3214444318 🔒Changes
backgroundBaseInteractiveSelecttoken for background color of expanded rows (when the document flyout is open 9d104c8b106cee4eb98e281b1ee8faf55a0d65a1Previous Changes (initial iteration, no longer part of the PR)
Remove custom background hover color for rows, in both data grids (main and document/table) bff52d8Use newbackgroundBaseInteractiveSelecttoken for background color of expanded rows (when the document flyout is open) 5a1f1f5Use newcomponents.dataGridRowBackgroundMarkedtoken for background color in surrounding documents page e5528f5Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsUnit or functional tests were updated or added to match the most common scenariosIf a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker listThis was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. Therelease_note:breakinglabel should be applied in these situations.Flaky Test Runner was used on any tests changedThe PR description includes the appropriate Release Notes section, and the correctrelease_note:*label is applied per the guidelinesbackport:*labels.Identify risks
Only visual changes for colors on table rows, no performance regression risk.