Skip to content

Commit

Permalink
fix: (CXSPA-7992) Store, MyPreferredStoreComponent 'In Stock' icon co…
Browse files Browse the repository at this point in the history
…ntrast (#19617)
  • Loading branch information
StanislavSukhanov authored Nov 26, 2024
1 parent c0a63ef commit 688476e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export class StoreComponent implements OnInit {
constructor() {
useFeatureStyles('a11yVisibleFocusOverflows');
useFeatureStyles('a11yViewHoursButtonIconContrast');
useFeatureStyles('a11yStoreInStockIconContrast');
}

ngOnInit(): void {
Expand Down
3 changes: 3 additions & 0 deletions feature-libs/pickup-in-store/styles/_store.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
.cx-store-stock-icon {
color: var(--cx-color-secondary);
opacity: var(--cx-opacity, 0.5);
@include forFeature('a11yStoreInStockIconContrast') {
opacity: var(--cx-opacity, 1);
}
}

.cx-store-out-of-stock {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ export interface FeatureTogglesInterface {
*/
a11yViewHoursButtonIconContrast?: boolean;

/**
* `StoreComponent` `In Stock` icon has an acceptable contrast ratio in a default theme
*/
a11yStoreInStockIconContrast?: boolean;

/**
* `Checkout` add a landmarks to content representing steps
*/
Expand Down Expand Up @@ -921,6 +926,7 @@ export const defaultFeatureToggles: Required<FeatureTogglesInterface> = {
a11yItemCounterFocus: false,
a11yScrollToReviewByShowReview: false,
a11yViewHoursButtonIconContrast: false,
a11yStoreInStockIconContrast: false,
a11yCheckoutStepsLandmarks: false,
a11yQTY2Quantity: false,
a11yImproveButtonsInCardComponent: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ if (environment.cpq) {
a11yItemCounterFocus: true,
a11yScrollToReviewByShowReview: true,
a11yViewHoursButtonIconContrast: true,
a11yStoreInStockIconContrast: true,
a11yCheckoutStepsLandmarks: true,
a11yQTY2Quantity: true,
a11yImproveButtonsInCardComponent: true,
Expand Down

0 comments on commit 688476e

Please sign in to comment.