Skip to content

Commit

Permalink
Merge branch 'develop' into feature/CXSPA-8195
Browse files Browse the repository at this point in the history
  • Loading branch information
uroslates authored Nov 4, 2024
2 parents 2e54e25 + 79c60bf commit 369e5b8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,11 @@ export interface FeatureTogglesInterface {
*/
a11yFacetsDialogFocusHandling?: boolean;

/**
* `StorefrontComponent`: Prevents header links from wrapping on smaller screen sizes
*/
headerLayoutForSmallerViewports?: boolean;

/**
* Enables radio group fieldset for 'CheckoutDeliveryModeComponent' form
* and further improves its screen reader readout.
Expand Down Expand Up @@ -774,6 +779,7 @@ export const defaultFeatureToggles: Required<FeatureTogglesInterface> = {
a11yNotificationsOnConsentChange: false,
a11yDisabledCouponAndQuickOrderActionButtonsInsteadOfRequiredFields: false,
a11yFacetsDialogFocusHandling: false,
headerLayoutForSmallerViewports: false,
a11yStoreFinderAlerts: false,
a11yFormErrorMuteIcon: false,
a11yCxMessageFocus: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ if (environment.cpq) {
a11yDisabledCouponAndQuickOrderActionButtonsInsteadOfRequiredFields:
true,
a11yFacetsDialogFocusHandling: true,
headerLayoutForSmallerViewports: true,
a11yStoreFinderAlerts: true,
a11yFormErrorMuteIcon: true,
a11yCxMessageFocus: true,
Expand Down
1 change: 1 addition & 0 deletions projects/storefrontlib/layout/main/storefront.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class StorefrontComponent implements OnInit, OnDestroy {
) {
useFeatureStyles('a11yImproveContrast');
useFeatureStyles('cmsBottomHeaderSlotUsingFlexStyles');
useFeatureStyles('headerLayoutForSmallerViewports');
}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ $space: 0.5rem;
.SiteLinks {
justify-content: flex-end;
color: var(--cx-color-primary);

@include forFeature('headerLayoutForSmallerViewports') {
flex-wrap: nowrap;
}
}

.SiteLogin {
Expand Down

0 comments on commit 369e5b8

Please sign in to comment.