Skip to content

Commit

Permalink
fix: Remove unnecessary visible text for screen-readers (SAP#19672)
Browse files Browse the repository at this point in the history
Closes CXSPA-9063
  • Loading branch information
steinsebastian authored Dec 2, 2024
1 parent 20683ab commit 5d66fa2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
<div class="form-group" *ngIf="attribute?.values?.length">
<label
*cxFeature="'a11yShowLabelOfSelect'"
for="{{ createAttributeIdForConfigurator(attribute) }}"
class="label-content"
>
{{
'configurator.a11y.listbox'
| cxTranslate
: {
count: attribute.values?.length,
}
}}
</label>
<label
*cxFeature="'!a11yShowLabelOfSelect'"
for="{{ createAttributeIdForConfigurator(attribute) }}"
class="cx-visually-hidden"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgSelectModule } from '@ng-select/ng-select';
import {
FeaturesConfigModule,
I18nModule,
provideDefaultConfig,
} from '@spartacus/core';
import { I18nModule, provideDefaultConfig } from '@spartacus/core';
import { KeyboardFocusModule } from '@spartacus/storefront';
import { ConfiguratorPriceModule } from '../../../price/configurator-price.module';
import { ConfiguratorAttributeCompositionConfig } from '../../composition/configurator-attribute-composition.config';
Expand All @@ -31,7 +27,6 @@ import { ConfiguratorAttributeSingleSelectionBundleDropdownComponent } from './c
ReactiveFormsModule,
ConfiguratorAttributeQuantityModule,
ConfiguratorPriceModule,
FeaturesConfigModule,
],
providers: [
provideDefaultConfig(<ConfiguratorAttributeCompositionConfig>{
Expand Down

0 comments on commit 5d66fa2

Please sign in to comment.