- Updated TeleworkAuthorizationForm, WorkProfileForm, PasswordForm, CredentialForm, UserForm, and various resource-related forms to use FormLabel instead of Label. - Introduced FormLabel component to encapsulate required indicator logic. - Removed optional labels from localization files and adjusted tests accordingly. - Ensured accessibility and consistency across forms by implementing required indicators visually.
9 lines
253 B
TypeScript
9 lines
253 B
TypeScript
/** Complemento visual; el control conserva su semántica de validación accesible. */
|
|
export function RequiredIndicator() {
|
|
return (
|
|
<span aria-hidden="true" className="text-destructive" data-slot="required-indicator">
|
|
*
|
|
</span>
|
|
);
|
|
}
|