<!-- INCORRECT --><div class="table-wrapper"> <mds-table-footer> <mds-table-cell>Totale</mds-table-cell> </mds-table-footer></div>
<!-- CORRECT --><mds-table> <mds-table-body><!-- ... --></mds-table-body> <mds-table-footer> <mds-table-cell><mds-text typography="action">Totale</mds-text></mds-table-cell> </mds-table-footer></mds-table><!-- INCORRECT --><mds-table-footer> <td>Cognome e nome</td> <td>Email</td></mds-table-footer>
<!-- CORRECT --><mds-table-footer> <mds-table-cell><mds-text typography="action">Cognome e nome</mds-text></mds-table-cell> <mds-table-cell><mds-text typography="action">Email</mds-text></mds-table-cell></mds-table-footer><!-- INCORRECT --><mds-table> <mds-table-body><!-- ... --></mds-table-body> <tfoot> <tr><td>Totale</td><td>4.700,00 EUR</td></tr> </tfoot></mds-table>
<!-- CORRECT --><mds-table> <mds-table-body><!-- ... --></mds-table-body> <mds-table-footer> <mds-table-cell><mds-text typography="action">Totale</mds-text></mds-table-cell> <mds-table-cell><mds-text typography="action">4.700,00 EUR</mds-text></mds-table-cell> </mds-table-footer></mds-table>/* INCORRECT */mds-table-footer >>> :host { background: rgb(var(--magma-surface-raised));}
/* CORRECT */mds-table { --mds-table-background: rgb(var(--magma-surface-raised)); --mds-table-border-color: rgb(var(--magma-border-default));}<!-- INCORRECT --><mds-table> <mds-table-footer> <mds-table-cell>Nessun dato disponibile</mds-table-cell> </mds-table-footer></mds-table>
<!-- CORRECT: use mds-zero for empty states, or include mds-table-body --><mds-table> <mds-table-header> <mds-table-header-cell label="Voce"></mds-table-header-cell> </mds-table-header> <mds-table-body> <mds-table-row> <mds-table-cell><mds-text typography="detail">Nessun record</mds-text></mds-table-cell> </mds-table-row> </mds-table-body></mds-table>