Skip to content

Commit

Permalink
improve html table accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jamband committed Oct 16, 2023
1 parent c31a8cd commit 42739a4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/browser-support/component.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ const { items } = Astro.props;
<thead class={styles.headerContainer}>
<tr class={styles.row}>
<th class={styles.header}></th>
<th class={styles.header}>chrome</th>
<th class={styles.header}>firefox</th>
<th class={styles.header}>safari</th>
<th scope="col" class={styles.header}>chrome</th>
<th scope="col" class={styles.header}>firefox</th>
<th scope="col" class={styles.header}>safari</th>
</tr>
</thead>
<tbody>
{
items.map((item) => (
<tr class={styles.row}>
<td class={styles.data}>{item.value}</td>
<th scope="row" class={styles.data}>
{item.value}
</th>
<td class={styles.data}>{item.chrome}</td>
<td class={styles.data}>{item.firefox}</td>
{item.safari === "tp" ? (
Expand Down

0 comments on commit 42739a4

Please sign in to comment.