From 1db33bc8ff8f00a0dd80c9a38d9945a5de2c67d4 Mon Sep 17 00:00:00 2001 From: Ike Saunders Date: Tue, 31 Oct 2023 16:39:34 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20table=20scope=20mixup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/gdocs/Table.tsx | 4 ++-- site/gdocs/centered-article.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/gdocs/Table.tsx b/site/gdocs/Table.tsx index d2ef0a8f890..67a5c45aa7b 100644 --- a/site/gdocs/Table.tsx +++ b/site/gdocs/Table.tsx @@ -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" diff --git a/site/gdocs/centered-article.scss b/site/gdocs/centered-article.scss index df1d3557c6f..2e6d1c48d29 100644 --- a/site/gdocs/centered-article.scss +++ b/site/gdocs/centered-article.scss @@ -470,7 +470,7 @@ div.article-block__table--wide { th { text-align: left; - &[scope="col"] { + &[scope="row"] { text-align: right; } }