Skip to content

Commit

Permalink
Remove option-label (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie authored Sep 12, 2024
1 parent 5ffb403 commit f2e1df9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ export class VaCheckbox {
disabled={disabled}
onChange={this.handleChange}
/>
<label htmlFor="checkbox-element" id="option-label" class="usa-checkbox__label" part="label">
<label htmlFor="checkbox-element" class="usa-checkbox__label" part="label">
{label}&nbsp;
{required && <span class="usa-label--required">{i18next.t('required')}</span>}
{checkboxDescription && <span class="usa-checkbox__label-description" aria-describedby="option-label" part="description">{checkboxDescription}</span>}
{checkboxDescription && <span class="usa-checkbox__label-description" part="description">{checkboxDescription}</span>}
</label>
{messageAriaDescribedby && (
<span id='input-message' class="usa-sr-only dd-privacy-hidden">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export class VaRadioOption {
<span
class="usa-radio__label-description dd-privacy-hidden"
data-dd-action-name="description"
aria-describedby="option-label"
>
{description}
</span>
Expand Down

0 comments on commit f2e1df9

Please sign in to comment.