Skip to content

Commit

Permalink
fix: (CXSPA-1051) - Stop sorting dropdown from truncating options (#1…
Browse files Browse the repository at this point in the history
…8423)

Co-authored-by: Piotr Bartkowiak <[email protected]>
  • Loading branch information
Pio-Bar and Piotr Bartkowiak authored Mar 27, 2024
1 parent 07506bb commit bc7f0ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions projects/storefrontapp/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ if (!environment.production) {
a11yNavigationUiKeyboardControls: true,
a11yOrderConfirmationHeadingOrder: true,
a11yStarRating: true,
a11ySortingOptionsTruncation: true,
a11yExpandedFocusIndicator: true,
a11yCheckoutDeliveryFocus: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import {
GlobalMessageService,
GlobalMessageType,
ProductSearchPage,
useFeatureStyles,
} from '@spartacus/core';
import { BehaviorSubject, combineLatest, Observable, Subscription } from 'rxjs';
import { BehaviorSubject, Observable, Subscription, combineLatest } from 'rxjs';
import { filter, skip, take } from 'rxjs/operators';
import { PageLayoutService } from '../../../../cms-structure/page/index';
import { ViewConfig } from '../../../../shared/config/view-config';
Expand All @@ -37,7 +38,9 @@ export class ProductListComponent implements OnInit, OnDestroy {
private productListComponentService: ProductListComponentService,
private globalMessageService: GlobalMessageService,
public scrollConfig: ViewConfig
) {}
) {
useFeatureStyles('a11ySortingOptionsTruncation');
}

ngOnInit(): void {
this.isInfiniteScroll = this.scrollConfig.view?.infiniteScroll?.active;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@
border-width: 1px 0 0 0;
padding: 25px 0 0px 0;
}

// TODO: (CXSPA-5926) Remove feaure flag next major release
@include forFeature('a11ySortingOptionsTruncation') {
& ng-select {
@include media-breakpoint-up(lg) {
width: 14rem;
}
}
}
}

.cx-pagination {
Expand Down

0 comments on commit bc7f0ce

Please sign in to comment.