-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Navigation] Consolidate se23 logic and styles #10213
Conversation
@@ -379,7 +315,7 @@ $nav-max-width: 360px; | |||
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY | |||
@include no-focus-ring; | |||
color: var(--p-color-text-primary); | |||
background-color: var(--p-color-bg-app-active); | |||
background-color: var(--p-color-bg-app-selected); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed due to specificity issues.
} | ||
|
||
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY | ||
@include focus-ring; | ||
|
||
&:hover, | ||
&:focus-visible { | ||
background-color: var(--p-color-bg-app-hover); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed due to specificity issues.
1dbb431
to
eb701c9
Compare
@media #{$p-breakpoints-md-up} { | ||
margin-right: var(--p-space-3); | ||
} | ||
margin-right: var(--p-space-1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed breakpoint margin styling due to specificity issues.
.SecondaryActions { | ||
margin-right: 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this margin due to specificity issues.
@@ -690,7 +544,6 @@ $nav-max-width: 360px; | |||
&:active { | |||
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY | |||
@include no-focus-ring; | |||
background: var(--p-color-bg-app-active); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed due to specificity issues.
} | ||
} | ||
|
||
&:focus-visible { | ||
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY | ||
@include focus-ring($style: 'focused'); | ||
color: var(--p-color-text); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed due to specificity issues.
@@ -791,51 +629,40 @@ $nav-max-width: 360px; | |||
@media #{$p-breakpoints-md-up} { | |||
font-size: var(--p-font-size-100); | |||
line-height: 1; | |||
padding-left: var(--p-space-10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed due to specificity issues.
@@ -1128,6 +922,10 @@ $nav-max-width: 360px; | |||
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY | |||
@include focus-ring($style: 'focused'); | |||
} | |||
|
|||
&:active { | |||
background-color: var(--p-color-bg-app-active); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added due to specificity issues.
&:active, | ||
&:active:hover { | ||
color: var(--p-color-text); | ||
background-color: var(--p-color-bg-app-active); | ||
background-color: var(--p-color-bg-app-selected); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed due to specificity issues.
@media #{$p-breakpoints-md-up} { | ||
font-size: var(--p-font-size-200); | ||
font-weight: var(--p-font-weight-medium); | ||
line-height: var(--p-font-line-height-5); | ||
padding-left: var(--p-space-3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed due to specificity issues.
eb701c9
to
b064566
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤩
btw I tophatted xs screen, keyboard navigation, and responsive screen and everything had parity with production! I did notice some bugs in production on xs screens, I've logged them here #10218 since it isn't related to this consolidation |
* next: (87 commits) [ButtonGroup] Removed `segmented` boolean prop and replaced with `variant` (#9997) [LegacyTabs] Consolidate se23 styles and logic (#10231) [v12] Update changesets (#10232) [LegacyFilters] Consolidate se23 styles and logic (#10217) [Banner] Change status prop to tone (#10206) Replace icon highlight color in box stories (#10226) [TopBar] Consolidate se23 styles and logic (#10221) [Filters] consolidate se23 logic and styles (#10178) [Icon] Update props (#10220) [ButtonGroup] Update variant plain prop name (#10222) [Button] Remove connectedDisclosure (#10182) [LegacyCard] Consolidate se23 styles and logic (#10207) [Navigation] Consolidate se23 logic and styles (#10213) [Frame][ContextualSaveBar] Consolidate se23 styles and logic (#10196) [OptionList] consolidate se23 styles and logic (#10177) [Page] Consolidate se23 styles and logic (#10187) [DataTable] Consolidate conditional logic (#10169) [Thumbnail] Consolidate conditional logic (#10171) [ResourceItem] Consolidate conditional logic (#10172) [FullscreenBar] Consolidate conditional logic (#10173) ...
* next: (87 commits) [ButtonGroup] Removed `segmented` boolean prop and replaced with `variant` (#9997) [LegacyTabs] Consolidate se23 styles and logic (#10231) [v12] Update changesets (#10232) [LegacyFilters] Consolidate se23 styles and logic (#10217) [Banner] Change status prop to tone (#10206) Replace icon highlight color in box stories (#10226) [TopBar] Consolidate se23 styles and logic (#10221) [Filters] consolidate se23 logic and styles (#10178) [Icon] Update props (#10220) [ButtonGroup] Update variant plain prop name (#10222) [Button] Remove connectedDisclosure (#10182) [LegacyCard] Consolidate se23 styles and logic (#10207) [Navigation] Consolidate se23 logic and styles (#10213) [Frame][ContextualSaveBar] Consolidate se23 styles and logic (#10196) [OptionList] consolidate se23 styles and logic (#10177) [Page] Consolidate se23 styles and logic (#10187) [DataTable] Consolidate conditional logic (#10169) [Thumbnail] Consolidate conditional logic (#10171) [ResourceItem] Consolidate conditional logic (#10172) [FullscreenBar] Consolidate conditional logic (#10173) ...
### WHY are these changes introduced? Resolves #9952. ### WHAT is this pull request doing? Consolidates se23 beta styles and logic for `Navigation`. ### How to 🎩 [Storybook](https://5d559397bae39100201eedc1-lecmsuzwza.chromatic.com/?path=/story/all-components-navigation--default) [Prod Storybook](https://storybook.polaris.shopify.com/?path=/story/all-components-navigation--default&globals=polarisSummerEditions2023:true) 🖥 [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 - [x] 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) - [ ] Tested for [accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md) - [ ] Updated the component's `README.md` with documentation changes - [ ] [Tophatted documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md) changes in the style guide
### WHY are these changes introduced? Resolves Shopify#9952. ### WHAT is this pull request doing? Consolidates se23 beta styles and logic for `Navigation`. ### How to 🎩 [Storybook](https://5d559397bae39100201eedc1-lecmsuzwza.chromatic.com/?path=/story/all-components-navigation--default) [Prod Storybook](https://storybook.polaris.shopify.com/?path=/story/all-components-navigation--default&globals=polarisSummerEditions2023:true) 🖥 [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 - [x] 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) - [ ] Tested for [accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md) - [ ] Updated the component's `README.md` with documentation changes - [ ] [Tophatted documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md) changes in the style guide
WHY are these changes introduced?
Resolves #9952.
WHAT is this pull request doing?
Consolidates se23 beta styles and logic for
Navigation
.How to 🎩
Storybook
Prod Storybook
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
🎩 checklist
README.md
with documentation changes