-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Datatable - make 3 lines the default setting for header row height #172698
Comments
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
I'm not fully sure I've understood where this default will be changed. There is also another thing to notice: the |
Hi Marco, if user didn't change a setting in any way, it will by default display
I am not sure why it is like that, it might be a EuiDataGrid limitation? Or maybe it's just prettier this way because the rows are not different height. The behavior is the same on Discover though. Please feel free to open an issue about it or let's sync with eui and discover before deciding if we need to change anything here. @davismcphee maybe you know? |
In On the other hand, we use the So the behaviour is technically inconsistent, but I'm not sure adding extra height to the header rows for consistency would be better since headers rows are always fixed to the top of the grid, so it would really just take extra space from the grid cells even though it's not actually being used. |
Agree, I don't think we need to align these behaviours currently. I was just noticing this difference. |
…ight (#180505) ## Summary Fixes #172698 The default setting for the header row height is custom, 3 lines (so if user doesn't modify the header row height). It doesn't visually affect datatables with short labels. <img width="765" alt="Screenshot 2024-04-10 at 18 39 51" src="https://github.com/elastic/kibana/assets/4283304/bdec216b-36e4-4ca4-8135-85008b7f311d"> <img width="739" alt="Screenshot 2024-04-10 at 18 39 25" src="https://github.com/elastic/kibana/assets/4283304/e5e6c4d5-f9c6-4270-85ba-f0ada2fbea69"> To code reviewers - this PR in itself is quite small but I rewrote all the datatable tests to testing library and made some code style improvements.
To align Discover behavior with Lens, we want to change the Header row height setting from
single
to 3 lines.Here's related issues for Discover:
The text was updated successfully, but these errors were encountered: