Skip to content

Commit

Permalink
[enhancement] Improve mobile display of custom actions
Browse files Browse the repository at this point in the history
- attempt to match default actions display while still allowing for custom/wildcard content
  • Loading branch information
cee-chen committed Nov 14, 2023
1 parent 15ae977 commit d076952
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/upcoming/7361.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Improved `EuiBasicTable`/`EuiInMemoryTable's mobile UI for custom actions

**Accessibility**

- Fixed custom `EuiBasicTable`/`EuiInMemoryTable` incorrendering nested interactive custom actions
19 changes: 19 additions & 0 deletions src/components/table/_responsive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,25 @@
}
}

// Custom actions
&:not(.euiTableRow-hasActions) .euiTableRowCell--hasActions:last-child {
width: 100%;

&::before {
content: '';
position: absolute;
left: 0;
right: 0;
height: $euiBorderWidthThin;
background-color: $euiTableActionsBorderColor;
}

.euiTableCellContent {
position: relative;
top: $euiSizeXS;
}
}

&.euiTableRow-hasActions.euiTableRow-isExpandable {
.euiTableRowCell--isExpander {
top: auto;
Expand Down

0 comments on commit d076952

Please sign in to comment.