Skip to content

Commit b6ccc1f

Browse files
committed
feat(ui5-table-cell): merged property added
- New merged boolean property on ui5-table-cell - Row borders refactored: border-top per cell instead of border-bottom per row - First row top border / last row bottom border handled via :first-of-type / :last-of-type - Selection highlight uses box-shadow instead of border-bottom to avoid layout shifts - Table now uses inset-inline-end/start, the old left/right + :dir(rtl) removed - When merged, cell's top border becomes transparent and content is hidden - Merging is disabled on hover/focus, content reveals with an opacity transition - Merging is also disabled when the row enters popin mode - Implemented via CSS Space Toggle trick, no JS needed - When a selection column is present, its border syncs with the first merged cell - New TableCell website sample added for merged cells - Partially fixes #7238 - CPOUIFTEAMB-2624
1 parent 287146e commit b6ccc1f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/main/src/TableCell.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class TableCell extends TableCellBase {
3535
* Defines whether the cell is visually merged with the cell directly above it.
3636
*
3737
* This is useful when consecutive cells in a column have the same value and should visually appear as a single merged cell.
38-
* **Note:** This feature is disabled when cells are rendered as popin.
38+
* Although the cell is visually merged with the previous one, its content must still be provided for accessibility purposes.
39+
* **Note:** This feature is disabled when cells are rendered as popin, and should remain `false` for interactive cell content.
3940
*
4041
* @default false
4142
* @since 2.21.0

packages/website/docs/_components_pages/main/Table/TableCell.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ To ensure usability, merged cell styling is automatically disabled in these case
3434
- **Popin mode:** When the table is narrow and cells are rendered in the popin area, merged styling is removed so each row's content remains visible.
3535
- **Hover and focus:** When the user hovers over or focuses within the row, merged styling is temporarily removed, making the merged content visible.
3636

37+
**Note:** Avoid using `merged` on cells that contain interactive content (e.g., buttons, or inputs).
38+
3739
<MergedCells />

0 commit comments

Comments
 (0)