Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Conversation

ginabak
Copy link
Contributor

@ginabak ginabak commented Jul 5, 2023

πŸ“£ ❀️ Hey hey reviewers! πŸ₯³ Would you mind looking at the Questions portion below? πŸ™πŸ½ THANK YOU IN ADVANCE.

WHY are these changes introduced?

Following the Uplift Figma Link for Tabs πŸ–ŒοΈ , the background colour on hover and active should be

background: var(--background-bg-secondary, #F3F3F3);

Related #9543
Discovered through https://github.com/Shopify/web/issues/96536

WHAT is this pull request doing?

(with uplift)

Before After
Screenshot 2023-07-05 at 1 31 29 PM Screenshot 2023-07-05 at 1 32 34 PM

❓ Questions πŸ™πŸ½

  1. I'm noticing that the More views font is slightly more bolded - is this what we want? I can't find any thing in the Figma πŸ˜„
Screenshot 2023-07-05 at 1 59 53 PM
  1. At a certain breakpoint, More views disappears, the tabs get slightly larger, and then a scroll appears. Is this the desired behaviour? I find it a little jarring.

Here's a video:

More.views.Scroll.mp4

How to 🎩

🎩 πŸŒ€ SPIN on web with these changes πŸ˜„ - takes you to Orders ❀️ πŸŒ€

Ensure that you have a smaller window frame to ensure that the More views is triggered πŸ˜„

πŸ–₯ Local development instructions
πŸ—’ General tophatting guidelines
πŸ“„ Changelog guidelines

🎩 checklist

@ginabak ginabak added the πŸ€–Skip Changelog Causes CI to ignore changelog update check. label Jul 5, 2023
@ginabak
Copy link
Contributor Author

ginabak commented Jul 5, 2023

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

🫰✨ Thanks @ginabak! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-cli@0.0.0-snapshot-release-20230705201526
yarn add @shopify/polaris@0.0.0-snapshot-release-20230705201526

background-color: var(--p-color-bg-secondary-experimental);
color: var(--p-color-text-primary);

#{$se23} & {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color: var(--p-color-text-primary);
z-index: var(--p-z-index-1);

#{$se23} & {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

&:not([aria-disabled='true']):hover {
background-color: var(--p-color-bg-interactive-subdued-active);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ This is the only change in the PR (the others are cleanup 🧼 🧹).

This is behind the se23:
https://github.com/Shopify/polaris/blob/5e2c3c532a9a0ee7aa6fd49439be118364a44c0d/polaris-react/src/components/Tabs/Tabs.scss#L361

and this follows the Tabs from the Uplift Figma for Tabs πŸ–ŒοΈ

}

&:not([aria-disabled='true']):active {
background-color: var(--p-color-bg-interactive-subdued-active);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the Uplift Figma for Tabs πŸ–ŒοΈ, hover and active were the same.

@ginabak ginabak marked this pull request as ready for review July 5, 2023 20:34
Copy link
Contributor

@aveline aveline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Background color update and cleanup looks good. Thanks @ginabak! πŸŽ‰

Copy link

@sethomas sethomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good to me, in regards to your questions:

  1. no clue (sorry)
  2. I find it jarring too but unsure the intent :(

@ginabak ginabak merged commit 8b2d9c2 into main Jul 6, 2023
@ginabak ginabak deleted the gbak/tab-colour branch July 6, 2023 22:19
@chloerice
Copy link
Member

Hey @ginabak! I know this already shipped but jumping in to reassure that #2 is intended, it's for small screen as it's an established pattern across other apps on iOS and Android to have tabs scroll. #1 looks like a bug πŸ‘€ Made an issue πŸ™πŸ½

@ginabak
Copy link
Contributor Author

ginabak commented Jul 7, 2023

Hey @ginabak! I know this already shipped but jumping in to reassure that #2 is intended, it's for small screen as it's an established pattern across other apps on iOS and Android to have tabs scroll. #1 looks like a bug πŸ‘€ Made an https://github.com/Shopify/polaris-summer-editions/issues/869 πŸ™πŸ½

@chloerice, you're the best! THANK YOUUU for answering my questions!!!! β™₯️

juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
## πŸ“£ ❀️ Hey hey reviewers! πŸ₯³ Would you mind looking at the `Questions`
portion below? πŸ™πŸ½ THANK YOU IN ADVANCE.

### WHY are these changes introduced?

Following the **[Uplift Figma Link for
`Tabs`](https://www.figma.com/file/jLLkmo9r28hiqPvf4s90E4/Polaris-Uplift-Components-%5Bgen3%E2%80%93alpha%5D?node-id=84001%3A38964&mode=dev)**
πŸ–ŒοΈ , the background colour on `hover` and `active` should be

```CSS
background: var(--background-bg-secondary, #F3F3F3);
```
Related Shopify#9543 
Discovered through https://github.com/Shopify/web/issues/96536 

### WHAT is this pull request doing?

(with uplift) 
| Before | After |
|--------|--------|
| <img width="566" alt="Screenshot 2023-07-05 at 1 31 29 PM"
src="https://github.com/Shopify/polaris/assets/43223543/41da1a18-6f19-4ece-af4d-bba8d5434316">
| <img width="566" alt="Screenshot 2023-07-05 at 1 32 34 PM"
src="https://github.com/Shopify/polaris/assets/43223543/96c1239c-d63a-4cb1-a43e-6ddb2ae9cc9d">
|



### ❓ Questions πŸ™πŸ½ 
1. I'm noticing that the `More views` font is slightly more bolded - is
this what we want? I can't find any thing in the Figma πŸ˜„
<img width="250" alt="Screenshot 2023-07-05 at 1 59 53 PM"
src="https://github.com/Shopify/polaris/assets/43223543/084499b4-aeff-4280-982b-e3d4780c234d">

2. At a certain breakpoint, `More views` disappears, the tabs get
slightly larger, and then a scroll appears. Is this the desired
behaviour? I find it a little jarring.

Here's a video: 


https://github.com/Shopify/polaris/assets/43223543/392582e0-6f59-4449-89b3-cde4a9a42429


### How to 🎩

🎩 πŸŒ€ [SPIN on web with these changes πŸ˜„ - takes you to Orders ❀️
](https://admin.web.more-views.gina-bak.us.spin.dev/store/shop1/orders?inContextTimeframe=none)
πŸŒ€

Ensure that you have a smaller window frame to ensure that the `More
views` is triggered πŸ˜„


πŸ–₯ [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
πŸ—’ [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
πŸ“„ [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)


### 🎩 checklist

- [ ] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [ ] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
## πŸ“£ ❀️ Hey hey reviewers! πŸ₯³ Would you mind looking at the `Questions`
portion below? πŸ™πŸ½ THANK YOU IN ADVANCE.

### WHY are these changes introduced?

Following the **[Uplift Figma Link for
`Tabs`](https://www.figma.com/file/jLLkmo9r28hiqPvf4s90E4/Polaris-Uplift-Components-%5Bgen3%E2%80%93alpha%5D?node-id=84001%3A38964&mode=dev)**
πŸ–ŒοΈ , the background colour on `hover` and `active` should be

```CSS
background: var(--background-bg-secondary, #F3F3F3);
```
Related Shopify#9543 
Discovered through Shopify/web#96536 

### WHAT is this pull request doing?

(with uplift) 
| Before | After |
|--------|--------|
| <img width="566" alt="Screenshot 2023-07-05 at 1 31 29 PM"
src="https://github.com/Shopify/polaris/assets/43223543/41da1a18-6f19-4ece-af4d-bba8d5434316">
| <img width="566" alt="Screenshot 2023-07-05 at 1 32 34 PM"
src="https://github.com/Shopify/polaris/assets/43223543/96c1239c-d63a-4cb1-a43e-6ddb2ae9cc9d">
|



### ❓ Questions πŸ™πŸ½ 
1. I'm noticing that the `More views` font is slightly more bolded - is
this what we want? I can't find any thing in the Figma πŸ˜„
<img width="250" alt="Screenshot 2023-07-05 at 1 59 53 PM"
src="https://github.com/Shopify/polaris/assets/43223543/084499b4-aeff-4280-982b-e3d4780c234d">

2. At a certain breakpoint, `More views` disappears, the tabs get
slightly larger, and then a scroll appears. Is this the desired
behaviour? I find it a little jarring.

Here's a video: 


https://github.com/Shopify/polaris/assets/43223543/392582e0-6f59-4449-89b3-cde4a9a42429


### How to 🎩

🎩 πŸŒ€ [SPIN on web with these changes πŸ˜„ - takes you to Orders ❀️
](https://admin.web.more-views.gina-bak.us.spin.dev/store/shop1/orders?inContextTimeframe=none)
πŸŒ€

Ensure that you have a smaller window frame to ensure that the `More
views` is triggered πŸ˜„


πŸ–₯ [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
πŸ—’ [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
πŸ“„ [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)


### 🎩 checklist

- [ ] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [ ] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
πŸ€–Skip Changelog Causes CI to ignore changelog update check.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants