Skip to content

Commit

Permalink
🐛 fix table scope mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Oct 31, 2023
1 parent 831f7ab commit 1db33bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/gdocs/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export function Table(props: TableProps) {
{row.cells.map((cell, columnIndex) => {
const scope =
isFirstColumnHeader && columnIndex === 0
? "col"
: isFirstRowHeader && rowIndex === 0
? "row"
: isFirstRowHeader && rowIndex === 0
? "col"
: undefined
const tag = scope ? "th" : "td"

Expand Down
2 changes: 1 addition & 1 deletion site/gdocs/centered-article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ div.article-block__table--wide {

th {
text-align: left;
&[scope="col"] {
&[scope="row"] {
text-align: right;
}
}
Expand Down

0 comments on commit 1db33bc

Please sign in to comment.