From c6e9d522aa77cb3baee040e5b8544847bd4e2040 Mon Sep 17 00:00:00 2001 From: deno Date: Fri, 5 Mar 2021 20:45:31 -0500 Subject: [PATCH] fix: components in active table rows (#2186) * fix: fix elements in active table rows [ci visual] * chore: trigger another chromatic build [ci visual] --- src/table.scss | 6 ++ .../__snapshots__/table.stories.storyshot | 89 +++++++++++++++++-- stories/table/table.stories.js | 31 +++++-- 3 files changed, 113 insertions(+), 13 deletions(-) diff --git a/src/table.scss b/src/table.scss index f3f426e276..23e43ac1be 100644 --- a/src/table.scss +++ b/src/table.scss @@ -305,6 +305,12 @@ $block: #{$fd-namespace}-table; } &--activable { + @include fd-active() { + * { + color: var(--sapList_Active_TextColor) !important; + } + } + @include fd-trigger-element(); @include fd-selected() { diff --git a/stories/table/__snapshots__/table.stories.storyshot b/stories/table/__snapshots__/table.stories.storyshot index f67f8b9712..0a1454ed0e 100644 --- a/stories/table/__snapshots__/table.stories.storyshot +++ b/stories/table/__snapshots__/table.stories.storyshot @@ -5377,21 +5377,68 @@ exports[`Storyshots Components/Table Interactive 1`] = ` - On This Row +

+ On This Row will cause +

- Will cause + + + + + + + -2,000.00 + + + EUR + + + + + + - Highlight of Whole Row + + + + + + + + + + Highlight of Whole Row + + + + + + @@ -5420,7 +5467,29 @@ exports[`Storyshots Components/Table Interactive 1`] = ` - Will cause + + + + + + + + + + Will cause + + + + + + @@ -8562,14 +8631,22 @@ exports[`Storyshots Components/Table Semantic 1`] = ` - First Name +

+ First Name +

- Last Name +

+ Last Name +

diff --git a/stories/table/table.stories.js b/stories/table/table.stories.js index a1e232e64d..a7f37be53e 100644 --- a/stories/table/table.stories.js +++ b/stories/table/table.stories.js @@ -61,7 +61,10 @@ In these cases, use the **Tree** instead. 'multi-input', 'checkbox', 'select', - 'menu' + 'menu', + 'text', + 'object-number', + 'object-marker' ] } }; @@ -390,14 +393,28 @@ export const interactive = () => ` Clicking on any Cell - On This Row - Will cause - Highlight of Whole Row +

On This Row will cause

+ + + -2,000.00EUR + + + + + + Highlight of Whole Row + + 01/26/17 Clicking On Cell - Will cause + + + + Will cause + + Highlight of cell Last Name 01/26/17 @@ -461,8 +478,8 @@ export const semanticRows = () => ` user.name@email.com - First Name - Last Name +

First Name

+

Last Name

01/26/17