@@ -35,15 +35,6 @@ export type RadioFieldProps<
3535 * label when using a screen reader.
3636 */
3737 description ?: string | React . ReactNode
38- /**
39- * Displayed in a tooltip beside the title. This field should be used
40- * for auxiliary context that helps users understand extra context about
41- * a field but isn't specifically required to know how to complete the input.
42- * This is announced as an `aria-description`
43- *
44- * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-description
45- */
46- tooltipText ?: string
4738 placeholder ?: string
4839 units ?: string
4940 control : Control < TFieldValues >
@@ -66,7 +57,6 @@ export function RadioField<
6657 name,
6758 label = capitalize ( name ) ,
6859 description,
69- tooltipText,
7060 units,
7161 control,
7262 items,
@@ -79,7 +69,7 @@ export function RadioField<
7969 < div >
8070 < div className = "mb-2" >
8171 { label && (
82- < FieldLabel id = { `${ id } -label` } tip = { tooltipText } >
72+ < FieldLabel id = { `${ id } -label` } >
8373 { label } { units && < span className = "ml-1 text-secondary" > ({ units } )</ span > }
8474 </ FieldLabel >
8575 ) }
@@ -88,10 +78,7 @@ export function RadioField<
8878 </ div >
8979 < RadioGroup
9080 defaultChecked = { field . value }
91- aria-labelledby = { cn ( `${ id } -label` , {
92- [ `${ id } -help-text` ] : ! ! tooltipText ,
93- } ) }
94- aria-describedby = { tooltipText ? `${ id } -label-tip` : undefined }
81+ aria-labelledby = { `${ id } -label` }
9582 onChange = { ( e ) =>
9683 parseValue ? field . onChange ( parseValue ( e . target . value ) ) : field . onChange ( e )
9784 }
@@ -130,7 +117,6 @@ export function RadioFieldDyn<
130117 name,
131118 label = capitalize ( name ) ,
132119 description,
133- tooltipText,
134120 units,
135121 control,
136122 children,
@@ -142,7 +128,7 @@ export function RadioFieldDyn<
142128 < div >
143129 < div className = "mb-2" >
144130 { label && (
145- < FieldLabel id = { `${ id } -label` } tip = { tooltipText } >
131+ < FieldLabel id = { `${ id } -label` } >
146132 { label } { units && < span className = "ml-1 text-secondary" > ({ units } )</ span > }
147133 </ FieldLabel >
148134 ) }
@@ -151,8 +137,7 @@ export function RadioFieldDyn<
151137 </ div >
152138 < RadioGroup
153139 defaultChecked = { field . value }
154- aria-labelledby = { cn ( `${ id } -label` , ! ! tooltipText && `${ id } -help-text` ) }
155- aria-describedby = { tooltipText ? `${ id } -label-tip` : undefined }
140+ aria-labelledby = { cn ( `${ id } -label` ) }
156141 onChange = { field . onChange }
157142 name = { field . name }
158143 { ...props }
0 commit comments