-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiTable EuiBasicTable] Fix nested content alignment when selection is enabled #7895
Merged
cee-chen
merged 10 commits into
elastic:main
from
mgadewoll:table/7888-fix-nested-content-alignment
Jul 22, 2024
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b658fdf
fix: update how/where offset is applied to align content
mgadewoll 264e515
fix: update mobile styles for nested table actions
mgadewoll 00abf7e
docs(storybook): add nested table example for EuiBasicTable
mgadewoll 0bb95e9
test(VRT): add reference images for new story
mgadewoll 6f59b6a
chore: add changelog
mgadewoll 909cb8b
chore: update changelog
mgadewoll c8be88a
refactor: revert EUiTableRowCell API changes
mgadewoll 6b224f0
fix: ensure only outer table cell container has checkbox offset align…
mgadewoll bee7403
test(VRT): update reference image
mgadewoll 4720fef
chore: update changelog
mgadewoll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+64.1 KB
...eference/chrome_desktop_Tabular_Content_EuiBasicTable_Expanded_Nested_Table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-424 Bytes
(82%)
...ome_desktop_Tabular_Content_EuiTable_EuiTableRow_EuiTableRowCell_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+208 KB
...reference/chrome_mobile_Tabular_Content_EuiBasicTable_Expanded_Nested_Table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-925 Bytes
(84%)
...rome_mobile_Tabular_Content_EuiTable_EuiTableRow_EuiTableRowCell_Playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**Bug fixes** | ||
|
||
- Fixed overlapping content in `EuiBasicTable` for expanded and selectable table rows | ||
- Fixed the alignment of `EuiBasicTable` mobile actions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm probably being a little nit-picky here, but wouldn't changing this to
& > .euiTableRowCell:first-child {
also have fixed the issue? I'm a little hesitant to apply new props toEuiTableRowCell
mostly because it's a public top-level API change 🤷 (which would mean breaking changes or deprecations if they ever change again in the future)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh damn, yes you're absolutely right! I should have noticed that 🤦♀️
That is definitely a more straight forward solution. I'll update 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted the API changes here in favor of the suggested style solution.