Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat(ui5-table): add row header column with sticky behavior - #14339

Open
stoyanovski wants to merge 4 commits into
mainfrom
RowHeader
Open

stoyanovski wants to merge 4 commits into
mainfrom
RowHeader

Conversation

@stoyanovski

Copy link
Copy Markdown
Contributor

Thank you for your contribution! 👏

PR checklist

For example: fix(ui5-*): correct/fix sth or feat(ui5-*): add/introduce sth. If you don't want the change to be part of the release changelog - use chore, refactor or docs.

  • Add proper description about the background of the change and the change itself

  • Link to an existing issue (if available)

Use Fixes: {#PR_NUMBER} to close the issue automatically when the PR is merged
or Related to: {#PR_NUMBER} to just create a link between the PR and the issue.

No related issue was supplied.

Background

Wide tables need a row-identifying column that stays visible during horizontal scrolling, so users can associate the remaining content with its row.

Changes

  • Add a private rowHeader property to ui5-table-header-cell. The matching body cells receive the rowheader role while retaining their ARIA column indexes.
  • Make the row header sticky only when it is the first column and the table uses overflowMode="Scroll". Account for preceding status and selection cells, inherit the row background through shadow slots, and show a border at the fixed edge.
  • Keep accessibility semantics independent of stickiness. Update state when the marked column or overflow mode changes, and use the first marked column if multiple columns are marked.
  • Include the sticky cell in row-specific focus scrolling so focused content is not hidden behind it.
  • Document all newly introduced properties as private. There is no public website sample.
  • Add focused Cypress coverage and an internal six-column sample at packages/main/test/pages/TableRowHeader.html.

Validation

  • yarn generate - passed; refreshed generated files.
  • yarn ts --force - passed after generation.
  • From packages/main: yarn test:cypress:single 'cypress\specs\Table.cy.tsx,cypress\specs\TableRow.cy.tsx,cypress\specs\TableHeaderRow.cy.tsx,cypress\specs\TableRowBase.cy.tsx,cypress\specs\TableNavigationFixedHeader.cy.tsx' - initially 43 passed, 1 failed because the Cypress runner covered the target of the existing fixed-header test.
  • From packages/main: yarn test:cypress:single cypress\specs\TableNavigationFixedHeader.cy.tsx - passed, all 3 tests, on retry after rebuilding.
  • All 44 tests across the five relevant specs passed across these runs, including 9 new row-header tests.
  • The internal sample was opened locally and rendered with row-header accessibility semantics.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

👋 Heads-up: dev close is in effect

Thanks for the contribution! This repository is currently in dev close ahead of release 2.30 (scheduled 2027-01-14, UTC). See the release schedule for the full timeline.

This PR appears to introduce public-API changes (detected by diffing the Custom Elements Manifest against the latest published version on npm):

@ui5/webcomponents

  • ➕ added interface: ITableFeature
  • ➕ added interface: ITableGrowing
  • ➕ added slot: status
  • ➕ added slot: status
  • 🔄 changed attribute sort-indicator (type)

Could you please hold off on merging into main until the release ships? Public-API changes are best landed in the next dev cycle so they don't slip into the release at the last minute. Once the release is out, this PR is good to go.

If this change must ship in the current release, please request a review from one or two members of @UI5/ui5-team-webc so the team can sign off explicitly.

💬 False positive? If you believe this PR doesn't actually change the public API (e.g. only internal refactoring, or an entry the detector mis-attributed), please reply on this thread — your feedback helps us improve the detection during this trial run.

Posted automatically by the Dev Close Notice workflow.

@stoyanovski
stoyanovski requested a review from aborjinik December 2, 2026 13:54
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@aborjinik
aborjinik requested a review from simlin December 3, 2026 06:32

@aborjinik aborjinik left a comment

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.

some points here.
is there anything we need to consider for the group rows?

Comment thread packages/main/src/Table.ts Resolved
Comment thread packages/main/src/Table.ts Resolved
Comment thread packages/main/src/TableCell.ts Resolved
Comment thread packages/main/src/TableCellBase.ts Resolved
Comment thread packages/main/src/TableHeaderCell.ts Outdated
* @private
*/
@property({ type: Boolean })
rowHeader = false;

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.

maybe we should ask @KvM2 but since role="rowheader" i kind a expect rowheader property instead of rowHeader, I might be wrong though.

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.

I added Katja as reviewer

Comment thread packages/main/src/TableHeaderRow.ts Resolved
Comment thread packages/main/src/TableHeaderCell.ts Resolved
stoyanovski and others added 3 commits December 4, 2026 16:42
Require consumers to mark first-column row headers explicitly and derive sticky positioning through CSS. Share selection column sizing between the grid and sticky offsets, and update tests and accessibility samples.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…mall screens

Preserve the sticky divider while exposing row focus outlines, disable row-header stickiness below 600px with CSS, and add responsive regression coverage and sample highlights.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@stoyanovski
stoyanovski deployed to netlify-preview December 4, 2026 16:21 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
netlify-preview — e1faac8c Deployed Dec 4, 2026 by stoyanovski via deploy-preview #3955
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants