Skip to content

[Visual Refresh][Discover] Update hover styles for tables#229928

Merged
acstll merged 4 commits intomainfrom
eui/discover-tables-hover
Sep 26, 2025
Merged

[Visual Refresh][Discover] Update hover styles for tables#229928
acstll merged 4 commits intomainfrom
eui/discover-tables-hover

Conversation

@acstll
Copy link
Copy Markdown
Contributor

@acstll acstll commented Jul 30, 2025

Summary

This PR updates styles in tables affecting background colors and hover states, aligning with current design spec.

Changes

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, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests 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
  • 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 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
  • Review the backport guidelines and apply applicable backport:* labels.

Identify risks

Only visual changes for colors on table rows, no performance regression risk.

@acstll acstll self-assigned this Jul 30, 2025
@acstll acstll added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting EUI Visual Refresh ci:cloud-deploy Create or update a Cloud deployment ci:cloud-persist-deployment Persist cloud deployment indefinitely labels Jul 30, 2025
@kertal kertal added Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// Feature:Discover Discover Application labels Jul 30, 2025
@acstll acstll marked this pull request as ready for review July 30, 2025 17:12
@acstll acstll requested review from a team as code owners July 30, 2025 17:12
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kibanamachine
Copy link
Copy Markdown
Contributor

Cloud deployment initiated, see credentials at: https://buildkite.com/elastic/kibana-deploy-cloud-from-pr/builds/321

@acstll
Copy link
Copy Markdown
Contributor Author

acstll commented Jul 30, 2025

Deployment is up for testing:

/cc @jughosta @l-suarez @ek-so

@ek-so
Copy link
Copy Markdown
Contributor

ek-so commented Jul 30, 2025

Thank you! From my side looks good and as we discussed.

Copy link
Copy Markdown
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

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

Thanks, @acstll!

@acstll
Copy link
Copy Markdown
Contributor Author

acstll commented Jul 31, 2025

@elasticmachine merge upstream

@l-suarez
Copy link
Copy Markdown
Contributor

Thanks for working on this.

As I mentioned in the slack thread the other day, I really miss the hover state in the datagrid in Discover, it really helps with readability when viewing a dense amount of data. The hover state in the table component looks good.

bgdiscover

All good in light theme. A few comments on dark theme:

There's little difference between row background colors on striped datagrids (on my macbook is better but on my other monitor the difference is almost not noticeable)
image

Active row has good contrast:
image

Hope this helps, thank you!

@davismcphee
Copy link
Copy Markdown
Contributor

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.

@ek-so
Copy link
Copy Markdown
Contributor

ek-so commented Aug 20, 2025

@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.

@acstll
Copy link
Copy Markdown
Contributor Author

acstll commented Aug 27, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

merge conflict between base and head

@acstll acstll force-pushed the eui/discover-tables-hover branch from 4ab3342 to f61f618 Compare August 27, 2025 12:14
@acstll acstll added ci:cloud-deploy Create or update a Cloud deployment and removed ci:cloud-deploy Create or update a Cloud deployment labels Aug 27, 2025
@acstll acstll requested a review from a team as a code owner August 27, 2025 12:43
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are the files expected?

Copy link
Copy Markdown
Contributor Author

@acstll acstll Aug 27, 2025

Choose a reason for hiding this comment

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

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 👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

these are the changes in EUI I was referring to: elastic/eui#8983

@acstll acstll added ci:cloud-redeploy Always create a new Cloud deployment and removed ci:cloud-redeploy Always create a new Cloud deployment labels Aug 27, 2025
@acstll acstll requested a review from a team as a code owner August 27, 2025 13:42
@acstll
Copy link
Copy Markdown
Contributor Author

acstll commented Aug 27, 2025

Deployment is up for testing again:

🔗 https://kibana-pr-229928.kb.us-west2.gcp.elastic-cloud.com/
🔑 in paste bin (or DM)

@acstll acstll requested a review from l-suarez August 28, 2025 11:06
@acstll
Copy link
Copy Markdown
Contributor Author

acstll commented Sep 8, 2025

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@l-suarez l-suarez left a comment

Choose a reason for hiding this comment

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

LGTM, thanks team!

@acstll
Copy link
Copy Markdown
Contributor Author

acstll commented Sep 8, 2025

quick status update:

@acstll acstll force-pushed the eui/discover-tables-hover branch from 3bb0441 to b164866 Compare September 12, 2025 09:09
@acstll acstll force-pushed the eui/discover-tables-hover branch from 5df16a4 to 0836093 Compare September 19, 2025 08:58
@acstll
Copy link
Copy Markdown
Contributor Author

acstll commented Sep 26, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Sep 26, 2025

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #4 / discover/group1 discover histogram should modify the time range when the histogram is brushed

History

cc @acstll

@acstll
Copy link
Copy Markdown
Contributor Author

acstll commented Sep 26, 2025

@jbudz the FTR failures seem unrelated to the changes in the PR — any ideas? 🙏

@jbudz
Copy link
Copy Markdown
Contributor

jbudz commented Sep 26, 2025

@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.

@acstll acstll merged commit d83935b into main Sep 26, 2025
12 checks passed
@acstll acstll deleted the eui/discover-tables-hover branch September 26, 2025 12:49
niros1 pushed a commit that referenced this pull request Sep 30, 2025
## 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>
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:cloud-deploy Create or update a Cloud deployment ci:cloud-persist-deployment Persist cloud deployment indefinitely EUI Visual Refresh Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.