]> source.dussan.org Git - gitea.git/commit
Restore Accessibility for Dropdown (#16576)
authorzeripath <art27@cantab.net>
Thu, 5 Aug 2021 22:16:24 +0000 (23:16 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Aug 2021 22:16:24 +0000 (01:16 +0300)
commit6e6f23b315ed21fbc8ef51a025959cfdc91e60a7
tree68f84e5fa714f035081cf8740d5d23df4c7a6ec6
parentfd39e6dc6a183a2779d22f4e63f9be6d716db794
Restore Accessibility for Dropdown (#16576)

* Restore #10096/#8638 and re-fix #15172

This PR restores the vendored and patched dropdow from #8638. It
however, abandons the calls to `click()` using instead the default
dropdown click calls instead. This prevents the issue of the dropdown
grabbing focus permanently however, this may have negative effects on
the effect of focus on the dropdowns.

Of note, the behaviour of the template selector dropdown on the repo
creation page is slightly odd - I don't believe that this odd behaviour
is caused by this PR but rather by the feed source for this. I suspect
that the dropdown should be adding a delete button to its selection.

Fix #15172
References: #7057

Signed-off-by: Andrew Thornton <art27@cantab.net>
* leverage fomantic-build instead

Signed-off-by: Andrew Thornton <art27@cantab.net>
* as per jookia

Signed-off-by: Andrew Thornton <art27@cantab.net>
.eslintrc
Makefile
web_src/fomantic/build/semantic.css
web_src/fomantic/build/semantic.js
web_src/js/vendor/dropdown.js [new file with mode: 0644]