-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard Navigation to a disabled donate button allows you to click the link #1327
Comments
Have in mind that according to the new design of the Home page (shown here: #1302) we will not have a Donate button on the successful campaign cards, but this is a well spotted defect and it will be good if we fix it until the new design is implemented since currently it is not in progress. |
Good to know! |
In the current usecase of If not done we end up with the following HTML structure Only issue is that custom style should be provided for focused elements, otherwise you wont be able to see which LinkButton is focused. const LinkButton = (
{ href, as, prefetch, locale, disabled, ...props }: NextLinkProps,
ref: Ref<LinkRef>,
) => (
<Link
href={href}
as={as}
prefetch={prefetch}
locale={locale}
passHref
legacyBehavior>
<Button ref={ref} disabled={disabled} {...props} sx={{
"&.Mui-focusVisible": {
border: 2,
borderColor: 'orange'
},
}}/>
</Link>
) UPDATE: Tested again on a freshly started server seems like using legacyBehavior prop is the only solution Solves #1328 as well. |
Which area(s) of Podkrepi.bg are affected? (leave empty if unsure)
No response
Describe the Bug
When you use your keyboard to go to one of the finished campaigns and click the donate link it redirects you to the page that should generally be inaccessible.
To Reproduce
Expected Behavior
It should be untabbable with a
tabindex={0}
Which browser are you using? (if relevant)
Not relevant.
The text was updated successfully, but these errors were encountered: