Skip to content

Commit

Permalink
revert: "fix: a11yPasswordVisibilityBtnValueOverflow typo (#19531)" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyber authored Dec 10, 2024
1 parent 3c1c25e commit 1250179
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class CSAgentLoginFormComponent implements OnInit {
submitEvent = new EventEmitter<{ userId: string; password: string }>();

constructor(protected fb: UntypedFormBuilder) {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
useFeatureStyles('a11yTextSpacingAdjustments');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class OrderGuestRegisterFormComponent implements OnDestroy {
protected authService: AuthService,
protected fb: UntypedFormBuilder
) {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

submit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class UserChangePasswordFormComponent {
protected formService: UserChangePasswordFormService,
protected messageService: MessageService
) {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

save(form: UntypedFormGroup): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { LoginFormComponentService } from './login-form-component.service';
})
export class LoginFormComponent {
constructor(protected service: LoginFormComponentService) {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

form: UntypedFormGroup = this.service.form;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class OneTimePasswordLoginFormComponent {
@HostBinding('class.user-form') style = true;

constructor() {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

onSubmit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class RegisterComponent implements OnInit, OnDestroy {
protected authConfigService: AuthConfigService,
protected registerComponentService: RegisterComponentService
) {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

ngOnInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ResetPasswordComponent {
token$: Observable<string> = this.service.resetToken$;

constructor(protected service: ResetPasswordComponentService) {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

onSubmit(token: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { UpdateEmailComponentService } from './update-email-component.service';
})
export class UpdateEmailComponent {
constructor(protected service: UpdateEmailComponentService) {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

form: UntypedFormGroup = this.service.form;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class MyAccountV2PasswordComponent {
isUpdating$: Observable<boolean> = this.service.isUpdating$;

constructor() {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

onSubmit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class UpdatePasswordComponent {
});

constructor(protected service: UpdatePasswordComponentService) {
useFeatureStyles('a11yPasswordVisibilityBtnValueOverflow');
useFeatureStyles('a11yPasswordVisibliltyBtnValueOverflow');
}

form: UntypedFormGroup = this.service.form;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ export interface FeatureTogglesInterface {
/**
* Stops the inputs value from obstructing the 'PasswordVisibilityToggleComponent'.
*/
a11yPasswordVisibilityBtnValueOverflow?: boolean;
a11yPasswordVisibliltyBtnValueOverflow?: boolean;

/**
* In `ItemCounterComponenet`, Remove button no longer lose focus after activating when count is 2.
Expand Down Expand Up @@ -959,7 +959,7 @@ export const defaultFeatureToggles: Required<FeatureTogglesInterface> = {
a11yAddToWishlistFocus: false,
a11ySearchBoxFocusOnEscape: false,
a11yUpdatingCartNoNarration: false,
a11yPasswordVisibilityBtnValueOverflow: false,
a11yPasswordVisibliltyBtnValueOverflow: false,
a11yItemCounterFocus: false,
a11yScrollToReviewByShowReview: false,
a11yViewHoursButtonIconContrast: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ if (environment.cpq) {
a11yAddToWishlistFocus: true,
a11ySearchBoxFocusOnEscape: true,
a11yUpdatingCartNoNarration: true,
a11yPasswordVisibilityBtnValueOverflow: true,
a11yPasswordVisibliltyBtnValueOverflow: true,
a11yItemCounterFocus: true,
a11yScrollToReviewByShowReview: true,
a11yViewHoursButtonIconContrast: true,
Expand Down
8 changes: 5 additions & 3 deletions projects/storefrontstyles/scss/cxbase/blocks/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,10 @@ form {
}

input[cxpasswordvisibilityswitch] {
@include forFeature('a11yPasswordVisibilityBtnValueOverflow') {
$password-visibility-btn-width: 30px;
padding-inline-end: calc($password-visibility-btn-width + $input-padding-x);
@include forFeature('a11yPasswordVisibliltyBtnValueOverflow') {
$password-visibbility-btn-width: 30px;
padding-inline-end: calc(
$password-visibbility-btn-width + $input-padding-x
);
}
}

0 comments on commit 1250179

Please sign in to comment.