Skip to content

Commit

Permalink
fix: use proper color text for future stock accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrozdsap committed Jan 9, 2025
1 parent 89151c1 commit 64b7b82
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 @@ -20,6 +20,7 @@ export class FutureStockAccordionComponent {

constructor(protected futureStockService: FutureStockFacade) {
useFeatureStyles('a11yCroppedFocusRing');
useFeatureStyles('a11yUseProperTextColorForFutureStockAccordion');
}

toggle(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ cx-future-stock-accordion {
margin-inline-start: 0;
}
}
@include forFeature('a11yUseProperTextColorForFutureStockAccordion') {
color: var(--cx-color-text);
}
margin: 0.5rem auto;
cursor: pointer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ export interface FeatureTogglesInterface {
*/
a11yNavigationUiKeyboardControls?: boolean;

/**
* In `FutureStockAccordionComponent` use `cx-color-text` for button color
*/
a11yUseProperTextColorForFutureStockAccordion?: boolean;

/**
* Improves screen reader(VoiceOver, JAWS) narration of menu buttons inside of 'NavigationUIComponent'.
*/
Expand Down Expand Up @@ -970,6 +975,7 @@ export const defaultFeatureToggles: Required<FeatureTogglesInterface> = {
a11yRequiredAsterisks: true,
a11yQuantityOrderTabbing: true,
a11yNavigationUiKeyboardControls: true,
a11yUseProperTextColorForFutureStockAccordion: false,
a11yNavMenuExpandStateReadout: false,
a11yOrderConfirmationHeadingOrder: true,
a11yStarRating: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ if (environment.cpq) {
a11yRequiredAsterisks: true,
a11yQuantityOrderTabbing: true,
a11yNavigationUiKeyboardControls: true,
a11yUseProperTextColorForFutureStockAccordion: true,
a11yNavMenuExpandStateReadout: true,
a11yOrderConfirmationHeadingOrder: true,
a11yStarRating: true,
Expand Down

0 comments on commit 64b7b82

Please sign in to comment.