From 6921e29f7e4a59b3374e45e3d9191f4cad1545cb Mon Sep 17 00:00:00 2001 From: ginabak Date: Mon, 30 Nov 2020 18:39:21 -0500 Subject: [PATCH 1/7] Experiment Tabs.scss --- src/components/Tabs/Tabs.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Tabs/Tabs.scss b/src/components/Tabs/Tabs.scss index 5a1cae9d49e..e3bed64ffe2 100644 --- a/src/components/Tabs/Tabs.scss +++ b/src/components/Tabs/Tabs.scss @@ -327,12 +327,14 @@ $focus-state-box-shadow-color: rgba(0, 0, 0, 0.8); .Tab { padding: spacing(tight) spacing(extra-tight); - - &:focus .Title::before { - background: var(--p-border-hovered); + &.Tab-selected .Title::before { + background: var(--p-action-primary); } &:active .Title::before { + background: var(--p-action-primary-pressed); + } + &:focus .Title::before { background: var(--p-surface-primary-selected-pressed); } } From 2c74506ed3dea2728efa90c2aabfe8e40a23aca7 Mon Sep 17 00:00:00 2001 From: ginabak Date: Mon, 30 Nov 2020 18:47:17 -0500 Subject: [PATCH 2/7] Fix issue when hover overwrites selected state - on keyboard and mouse hover --- src/components/Tabs/Tabs.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Tabs/Tabs.scss b/src/components/Tabs/Tabs.scss index e3bed64ffe2..0e6468857e5 100644 --- a/src/components/Tabs/Tabs.scss +++ b/src/components/Tabs/Tabs.scss @@ -327,9 +327,6 @@ $focus-state-box-shadow-color: rgba(0, 0, 0, 0.8); .Tab { padding: spacing(tight) spacing(extra-tight); - &.Tab-selected .Title::before { - background: var(--p-action-primary); - } &:active .Title::before { background: var(--p-action-primary-pressed); @@ -345,6 +342,9 @@ $focus-state-box-shadow-color: rgba(0, 0, 0, 0.8); } .Tab-selected { + &:focus .Title::before { + background: var(--p-action-primary); + } .Title { color: var(--p-text); From 61f406a17641ff825600fbb61fdfb2fee118c884 Mon Sep 17 00:00:00 2001 From: ginabak Date: Mon, 30 Nov 2020 21:22:20 -0500 Subject: [PATCH 3/7] Add unreleased.md --- UNRELEASED.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UNRELEASED.md b/UNRELEASED.md index 01c5df063cf..8ee26f138e6 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -2,17 +2,15 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to format new entries. 💜 -- Fixes keyboard interactions for the `Tab` component ([#3650](https://github.com/Shopify/polaris-react/pull/3650)) -- Adds `role="presentational"` to list items for `Tabs` ([#3647](https://github.com/Shopify/polaris-react/pull/3647)) - ### Breaking changes ### Enhancements -- Allow `Thumbnail` `source` property to support `icons` ([#3328](https://github.com/Shopify/polaris-react/pull/3328)) +- Allowed `Thumbnail` `source` property to support `icons` ([#3328](https://github.com/Shopify/polaris-react/pull/3328)) - **`Button`:** New `role` prop for `