Overrides the built-in ARIA label strings the input directives announce
withInputAriaLabels
Functionforms/input
projects/forms/input/input-config.ts
Description#
Overrides the built-in ARIA label strings the input directives announce.
- Unset keys fall back to
DEFAULT_INPUT_ARIA_LABELSper key, so a partial override is safe. - Library defaults are English; German (or any locale) is consumer-supplied
here. Mirrors the select family's
withAriaLabels. clear->CngxInputClearbutton label.copySuccess/copyError->CngxCopyValuelive-region announcements.otpGroup/otpSlot(index, length)/otpComplete->CngxOtpInputgroup, per-slot labels, and completion announcement.capsLockOn->CngxCapsLockassertive warning.passwordStrength(label)->CngxPasswordStrengthpolite announcement.inputRejected->CngxInputFilterassertive rejection.sensitiveReveal/sensitiveHide->CngxSensitiveValuereveal/hide announcements.ratingValue(value, max)->CngxRatingpolite committed-value announcement.ratingItem(step, max)->CngxRatingper-star radioaria-label.phoneCountry->CngxPhoneInputcountry-pickeraria-label.
provideInputConfig(
withInputAriaLabels({ clear: 'Leeren', copySuccess: 'Kopiert' }),
);Signature#
withInputAriaLabels(labels: Partial)Parameters#
@paramlabels
PartialReturns#
InputConfigFeature