You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since the input 'file' doesn't have a role by default, should I add an "aria-label" or a "data-testid" for the input element?
Because as said here : 'The first rule of aria is don't use aria'.
Also testing library says this about using data-testid : 'Using data-testid attributes do not resemble how your software is used and should be avoided if possible'
so what should I pick ?
The text was updated successfully, but these errors were encountered:
@alexkrolick that's probably a chrome decision and not a spec definition so I guess it might not work in JSDOM.
Based on the spec, as @mo-alaa said, input type file has no implicit role:
Hi, I have a hidden input inside a button to upload files.
since the input 'file' doesn't have a role by default, should I add an
"aria-label"
or a"data-testid"
for the input element?Because as said here : 'The first rule of aria is don't use aria'.
Also testing library says this about using
data-testid
: 'Using data-testid attributes do not resemble how your software is used and should be avoided if possible'so what should I pick ?
The text was updated successfully, but these errors were encountered: