@@ -160,7 +160,6 @@ export const ShareInput = React.memo(
160160 onClick = { onRemove }
161161 className = "border-none p-xs shrink-0"
162162 aria-label = "Remove recipient"
163- aria-describedby = { pointerInputId }
164163 >
165164 < SVGDeleteScript className = "w-6 h-6" />
166165 </ ToolsSecondaryButton >
@@ -177,11 +176,8 @@ export const ShareInput = React.memo(
177176 onChange = { ( e : React . ChangeEvent < HTMLInputElement > ) =>
178177 onChangeName ( e . target . value )
179178 }
180- aria-describedby = { ` name-description- ${ index } ` }
179+ ariaDescription = "Enter an optional name for this recipient"
181180 />
182- < div id = { `name-description-${ index } ` } className = "sr-only" >
183- Optional name for this recipient.
184- </ div >
185181 </ div >
186182 < div
187183 role = "cell"
@@ -200,12 +196,7 @@ export const ShareInput = React.memo(
200196 }
201197 required
202198 error = { error }
203- aria-required = "true"
204- aria-invalid = { hasError }
205- aria-describedby = { cx (
206- `pointer-description-${ index } ` ,
207- hasError ? `pointer-error-${ index } ` : ''
208- ) }
199+ ariaDescription = "Enter a valid wallet address or payment pointer for this recipient"
209200 className = { cx (
210201 showIcon && 'pr-10' ,
211202 hasError && 'border-field-border-error'
@@ -217,9 +208,6 @@ export const ShareInput = React.memo(
217208 { showSuccess && < SVGCheckIcon className = "w-4 h-4" /> }
218209 </ div >
219210 ) }
220- < div id = { `pointer-description-${ index } ` } className = "sr-only" >
221- Required wallet address for this recipient.
222- </ div >
223211 </ div >
224212 < div role = "cell" aria-labelledby = "col-weight" >
225213 < label htmlFor = { weightInputId } className = "sr-only" >
@@ -235,13 +223,9 @@ export const ShareInput = React.memo(
235223 onChangeWeight ( Number ( e . target . value ) )
236224 }
237225 disabled = { weightDisabled || ( ! ! pointer && isValid !== true ) }
238- aria-disabled = { weightDisabled || ( ! ! pointer && isValid !== true ) }
239- aria-describedby = { `weight-description-${ index } ` }
240- aria-required = "true"
226+ required
227+ ariaDescription = "Enter a numeric weight for this recipient. Higher weight values result in a larger percentage of revenue."
241228 />
242- < div id = { `weight-description-${ index } ` } className = "sr-only" >
243- Weight value for calculating revenue share.
244- </ div >
245229 </ div >
246230 < div role = "cell" aria-labelledby = "col-percentage" >
247231 < div
@@ -261,7 +245,6 @@ export const ShareInput = React.memo(
261245 onClick = { onRemove }
262246 className = "border-none p-xs shrink-0"
263247 aria-label = "Remove recipient"
264- aria-describedby = { pointerInputId }
265248 >
266249 < SVGDeleteScript className = "w-6 h-6" />
267250 </ ToolsSecondaryButton >
0 commit comments