ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[UI5 Table]: The UI5 Table component does not support caption feature

Open lv-sap opened this issue 1 year ago • 3 comments

Bug Description

The UI5 Table component https://sap.github.io/ui5-webcomponents/components/Table/ does not support the tag which is supposed to provide brief descriptive text or title that will indicate the content of the table, as described here https://sap.levelaccess.net/public/standards/view_best_practice.php?violation_id=415

Affected Component

UI5 Table

Expected Behaviour

The UI5 Table component at https://sap.github.io/ui5-webcomponents/components/Table/ to support the tag which enables the user to provide brief descriptive text or title that will indicate the content of the table. https://sap.levelaccess.net/public/standards/view_best_practice.php?violation_id=415

Isolated Example

No response

Steps to Reproduce

  1. See current implementation https://sap.github.io/ui5-webcomponents/components/Table/
  2. See expected behavior https://sap.levelaccess.net/public/standards/view_best_practice.php?violation_id=415

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

latest

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • [x] I’m not disclosing any internal or sensitive information.

lv-sap avatar Mar 31 '25 18:03 lv-sap

Hello colleagues @SAP/ui5-webcomponents-table ,

According to the reported there is a missing API in the ui5-table for providing brief descriptive text and/or title about the ui5-table's contents.

In the provided public links, there is a recommendation to use a caption elements.

Could you please, take over ?

Best Regards, Stoyan

hinzzx avatar Apr 01 '25 12:04 hinzzx

Hello @lv-sap ,

for the purpose of labelling the table we are using the ARIA mechanisms. The aria-label and aria-labelledby properties are set on DOM level depending on the usage of the properties accessiblename and accessiblenameRef of the table WebComponent. This should be equivalent to the use of the native HTML table and caption elements.

see e.g. https://sap.github.io/ui5-webcomponents/components/Table/#accessiblename

Best Regards Jens

simlin avatar Apr 01 '25 12:04 simlin

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Apr 28 '25 12:04 github-actions[bot]