Skip to content

Commit

Permalink
fix: Console issue that appears after clicking on i-icon (#19358)
Browse files Browse the repository at this point in the history
Closes CXSPA-8600
  • Loading branch information
Larisa-Staroverova authored Oct 16, 2024
1 parent 7c15b1a commit 121ea4b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
createAttributeValueIdForConfigurator(attribute, value.valueCode) +
'-input'
}}"
aria-hidden="true"
class="form-check-label"
>
<img
Expand Down Expand Up @@ -116,7 +115,6 @@
value.valueCode
) + '-input'
}}"
aria-hidden="true"
class="form-check-label"
[style.cursor]="!isReadOnly(attribute) ? 'pointer' : 'default'"
title="{{ getLabel(expMode, value.valueDisplay, value.valueCode) }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,18 +376,6 @@ describe('ConfiguratorAttributeMultiSelectionImageComponent', () => {
);
});

it("should contain label elements with class name 'form-check-label' and 'aria-hidden' attribute attribute that removes label from the accessibility tree", () => {
CommonConfiguratorTestUtilsService.expectElementContainsA11y(
expect,
htmlElem,
'label',
'form-check-label',
2,
'aria-hidden',
'true'
);
});

it("should contain button elements with 'aria-label' attribute that point out that there is a description for the current value", () => {
(config.features ?? {}).productConfiguratorAttributeTypesV2 = true;
fixture.detectChanges();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
createAttributeValueIdForConfigurator(attribute, value.valueCode) +
'-input'
}}"
aria-hidden="true"
class="form-check-label form-radio-label"
>
<img
Expand Down Expand Up @@ -150,7 +149,6 @@
value.valueCode
) + '-input'
}}"
aria-hidden="true"
class="form-check-label form-radio-label"
[style.cursor]="!isReadOnly(attribute) ? 'pointer' : 'default'"
title="{{ getLabel(expMode, value.valueDisplay, value.valueCode) }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,18 +359,6 @@ describe('ConfiguratorAttributeSingleSelectionImageComponent', () => {
);
});

it("should contain label element with class name 'form-check-label' and 'aria-hidden' attribute that removes an element from the accessibility tree", () => {
CommonConfiguratorTestUtilsService.expectElementContainsA11y(
expect,
htmlElem,
'label',
'form-check-label',
1,
'aria-hidden',
'true'
);
});

it("should contain button elements with 'aria-label' attribute that point out that there is a description for the current value", () => {
(config.features ?? {}).productConfiguratorAttributeTypesV2 = true;
fixture.detectChanges();
Expand Down

0 comments on commit 121ea4b

Please sign in to comment.