- Issue created by @just_like_good_vibes
- 🇫🇷France pdureau Paris
Upstream documentation: https://www.systeme-de-design.gouv.fr/version-courante/fr/composants/tab...
We don't need a "Table row" component because there is no specific markup there:
<div class="fr-table"> <div class="fr-table__wrapper"> <div class="fr-table__container"> <div class="fr-table__content"> <table> <caption> Titre du tableau (caption) </caption> <thead> <tr> <th scope="col"> th0 </th> <th scope="col"> th1 </th> <th scope="col"> th2 </th> <th scope="col"> th3 </th> </tr> </thead> <tbody> <tr> <td> Lorem [...] elit ut. </td> <td> Lorem [...] elit ut. </td> <td> Lorem [...] elit ut. </td> <td> Lorem [...] elit ut. </td> </tr> ... </tbody> </table> </div> </div> </div> </div> So, the table's <code>body
slot can expect a list of a list of renderables. We will need to check the 2 levels structure in the Twig template.
If this make using this component in Views rows more difficult, let's address this in UI Patterns module.
- 🇫🇷France just_like_good_vibes PARIS
we are maybe not ready yet, but we are taking a specific direction, that would be good to validate the direction :)
for example for props being array of attributes - 🇫🇷France pdureau Paris
let's not forget to use sdc_devel<
And
vincentlanglet/twig-cs-fixer
for linting the Twig. Andpretttier
for linting the YAML.