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

[Feature Request]: alternateRowColors for table and lists

Open fk-aconso opened this issue 11 months ago • 8 comments

Feature Request Description

We do have apps using openUI5 with the build-in components and Nuxt.js apps using the UI5 Web Components in production. One design feature that is highly requested are the "alternateRowColors" for Tables, Lists and Trees.

Proposed Solution

Add a property "alternateRowColors" on Table, List and Tree, similar to the UI5 control: https://openui5.hana.ondemand.com/api/sap.ui.table.Table#controlProperties

Proposed Alternatives

No response

Organization

aconso AG

Additional Context

No response

Priority

Medium

Privacy Policy

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

fk-aconso avatar May 27 '25 14:05 fk-aconso

Hello @SAP/ui5-webcomponents-topic-p and @@SAP/ui5-webcomponents-table,

Take a look at this feature request.

Best regards, Boyan

unazko avatar May 29 '25 10:05 unazko

Hello @fk-aconso ,

I quickly checked the Fiori guidelines ( https://experience.sap.com/internal/fiori-design-web/responsive-table/#properties ) and the property alternateRowColors is marked there as "Do not use.". So, from our design department side the functionality seems not be considered as important.

Can you please describe in more detail why this functionality is important for you and who needs this functionality? This feedback would be really helpful.

Thanks and Best Regards Jens

simlin avatar May 30 '25 12:05 simlin

Hi,

mainly because our customers are used to it. The feature has been active in our UI5 applications for years and for the new applications based on the web components, we receive feedback that a return to alternating rows would be very welcome. Users state that it is easier to read information from tables because the rows are better separated from each other.

Best regards

fk-aconso avatar Jun 02 '25 05:06 fk-aconso

Design department involved

simlin avatar Jun 02 '25 13:06 simlin

Would it be possible for you to define your own alternate color to achieve the effect you're looking for?

[ui5-table-row]:nth-child(even) {
    filter: brightness(95%);
}

aborjinik avatar Jun 02 '25 13:06 aborjinik

what stops you to add your own specific alternate color?

[ui5-table-row]:nth-child(even) { filter: brightness(95%); }

Yes, we will probably do that, if the feature request is rejected.

To make sure it works properly with all themes, does not break color contrast (accessibility) etc., i would prefer a build in solution.

fk-aconso avatar Jun 02 '25 13:06 fk-aconso

Table: FIORITECHP1-33730

simlin avatar Jun 04 '25 11:06 simlin

Hello, everyone! The issue has been inactive for 21 days. If there are still questions or comments, please feel free to continue the discussion. Inactive issues will be closed after 7 days!

github-actions[bot] avatar Jun 26 '25 00:06 github-actions[bot]

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

github-actions[bot] avatar Oct 17 '25 12:10 github-actions[bot]

:tada: This issue has been resolved in version v2.16.0-rc.2 :tada:

The release is available on v2.16.0-rc.2

Your semantic-release bot :package::rocket:

ui5-webcomponents-bot avatar Oct 23 '25 08:10 ui5-webcomponents-bot