From d1bc696f9f95859a848d085625a937f604c209d6 Mon Sep 17 00:00:00 2001 From: giuliana Date: Fri, 24 Jan 2025 11:24:22 +0000 Subject: [PATCH] feat(select): change required prop description --- core/src/components.d.ts | 4 ++-- core/src/components/select/select.tsx | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 6f53d4d245..d4f8df573c 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -2809,7 +2809,7 @@ export namespace Components { */ "placeholder"?: string; /** - * If `true`, the user must fill in a value before submitting a form. + * If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid. */ "required": boolean; /** @@ -7645,7 +7645,7 @@ declare namespace LocalJSX { */ "placeholder"?: string; /** - * If `true`, the user must fill in a value before submitting a form. + * If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid. */ "required"?: boolean; /** diff --git a/core/src/components/select/select.tsx b/core/src/components/select/select.tsx index b9495115d1..81c93244f6 100644 --- a/core/src/components/select/select.tsx +++ b/core/src/components/select/select.tsx @@ -197,7 +197,9 @@ export class Select implements ComponentInterface { @Prop({ mutable: true }) value?: any | null; /** - * If `true`, the user must fill in a value before submitting a form. + * If true, screen readers will announce it as a required field. This property + * works only for accessibility purposes, it will not prevent the form from + * submitting if the value is invalid. */ @Prop() required = false;