-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Remove vendored copy of fomantic-dropdown #15193
Conversation
jQuery 3.6.0 seems to have broke the dropdown focus handling (focus would get stuck on the dropdown) in this module which we have vendored on top of fomantic for accessibility improvements. Either downgrading jQuery to 3.5.1 or removing the vendor copy seems to resolve the issue and I opted for removing the copy because I think such changes should be done upstream and the removal also lightens the JS by 155kB before minify/gzip. Fixes: go-gitea#15172
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Have these a11y fixes been upstreamed? I don't want to lose any accessibility by merging this. |
No, it was never followed up and it seems the original author also has no interest in upstreaming the patch. So yes, we'd loose some a11y with this removal, but I think it's overall a net gain to no longer have this crude way of patching fomantic (essentially it just runs another copy of the fomantic module on top of the already initialized original module, a recipe for disaster). |
As expected this definitely breaks a11y for me using the Orca screenreader on Linux with Firefox, i.e. in the "create" drop-down in the main navigation. Tested with Gitea master from April 19th. Other browsers and screenreaders are affected too, of course. I really hope you don't intend to stick with this state and I wish you would give a11y a higher priority in general. I am not deep enough into web development to come up with pull requests, but I would be available as a tester and I am able to build Gitea from sources. |
We are deeply dependant on Fomantic UI which was not created with accessiblity in mind. I think our best bet is to gradually replace it with something better, but I'm not sure what to replace it with. Alternatively, we could again try to hack something up to add |
jQuery 3.6.0 seems to have broke the dropdown focus handling (focus would get stuck on the dropdown) in this module which we have vendored on top of fomantic for accessibility improvements.
Either downgrading jQuery to 3.5.1 or removing the vendor copy seems to resolve the issue and I opted for removing the copy because I think such changes should be done upstream and the removal also lightens the JS by 155kB before minify/gzip.
Fixes: #15172
Ref: #8638
Ref: jquery/jquery#4813