Stacked table without header causes warnings

Created on 18 October 2024, 3 months ago

Problem/Motivation

I need a USWDS table to be stacked, but it doesn't have headers. It works well, but PHP warnings are displayed.
Another issue is: if I have a table without header next to a normal table with header, and both are stackable, the headless table will use headers from the first table on mobile.

Steps to reproduce

Just create a table without a header row and make it stackable.
Place another table with header before the headless table.

Proposed resolution

Attached is a patch that resolves warnings and headers duplication issue.

πŸ› Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States edwardsay

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024