Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293174

Theme Olivero : no table zebra

$
0
0

Problem/Motivation

The new theme Olivero doesn't allow table zebra. Therefore distinguish different rows in a table may be difficult. Some others themes like the old Bartik or the new Claro ones do it using odd/even classes through table.html.twig and convenient css rules. Theme Olivero hasn't such table twig. Thus for this theme the default table twig
core/modules/system/templates/table.html.twig,
is used, which does not implement odd/even classes. Moreover the table.css exists for that theme but has no rules for odd/even classes.

Therefore does this lack is intentional or is a forgetfulness? Why an other approach is used for table zebra? Which one is expected instead?

Steps to reproduce

Proposed resolution

Add a table.html.twig file to Olivero theme, like the Claro theme one.
Add a rule for tr.odd in table.pcss.css.

Remaining tasks

Modify table.pcss.css.
Add a table.html.twig file to Olivero theme, like the Claro theme one.: not necessary.

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293174

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>