A11y: Make list type picker display tooltip on hover (#68798)
* Change ariaLabel to description * Description fallback for aria-label * Add ariaLabel ass fallback for description
This commit is contained in:
@@ -55,10 +55,10 @@ export const RadioButton = React.forwardRef<HTMLInputElement, RadioButtonProps>(
|
||||
id={id}
|
||||
checked={active}
|
||||
name={name}
|
||||
aria-label={ariaLabel}
|
||||
aria-label={ariaLabel || description}
|
||||
ref={ref}
|
||||
/>
|
||||
<label className={styles.radioLabel} htmlFor={id} title={description}>
|
||||
<label className={styles.radioLabel} htmlFor={id} title={description || ariaLabel}>
|
||||
{children}
|
||||
</label>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user