From 80de8b668fda222094425de91186f4cfd2106da5 Mon Sep 17 00:00:00 2001 From: Igor Bari Date: Sun, 25 Aug 2024 13:31:22 +0200 Subject: [PATCH] add cell highlighting aligment and no wrap --- src/Table/Table.css | 16 ++++++++++------ src/Table/Table.stories.ts | 32 ++++++++++++++++---------------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/src/Table/Table.css b/src/Table/Table.css index 3b771b4..646bb1a 100644 --- a/src/Table/Table.css +++ b/src/Table/Table.css @@ -47,18 +47,22 @@ table[bt] { } } - th[right-align], - td[right-align] { + td[bt-highlighted] { + color: var(--bt-strong-text-color); + } + + th[bt-right-align], + td[bt-right-align] { text-align: right; } - th[center-align], - td[center-align] { + th[bt-center-align], + td[bt-center-align] { text-align: center; } - th[no-wrap], - td[no-wrap] { + th[bt-no-wrap], + td[bt-no-wrap] { white-space: nowrap; } } diff --git a/src/Table/Table.stories.ts b/src/Table/Table.stories.ts index 9fd5d1a..05698e2 100644 --- a/src/Table/Table.stories.ts +++ b/src/Table/Table.stories.ts @@ -20,24 +20,24 @@ export const Default: Story = { - Chris + Chris HTML tables - 22 + 22 - Dennis + Dennis Web accessibility - 45 + 45 - Sarah + Sarah JavaScript frameworks - 29 + 29 - Karen + Karen Web performance - 36 + 36 `, @@ -57,27 +57,27 @@ export const WithSelection: Story = { - Chris + Chris HTML tables - 22 + 22 - Dennis + Dennis Web accessibility - 45 + 45 - Sarah + Sarah JavaScript frameworks - 29 + 29 - Karen + Karen Web performance - 36 + 36 `,