0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-05-20 20:34:01 +02:00
gitea/web_src/js
wxiaoguang e8ac6a9aea
Add ARIA support for Fomantic UI checkboxes (#22599)
Replace #22593

This is a general approach to add ARIA support for all Fomantic UI
checkboxes (including radioboxes)

* Pros:
* General approach, it works for all Fomantic UI checkboxes / radioboxes
    * No need to write IDs manually everywhere
    * No need to tell new contributors to write IDs again and again

* Cons:
* Slightly affects performance, but it's really trivial, because there
was already a heavy `$('.ui.checkbox').checkbox()` for Fomantic UI
before. So everything is still fine.


Screenshot (from the repo setting page, which has various checkboxes):

<details>


![image](https://user-images.githubusercontent.com/2114189/214480937-3a54d36f-55c3-49de-9c45-c4bb21f1f4c6.png)

</details>
2023-01-25 17:52:10 +02:00
..
components Restore function to "Show more" buttons (#22399) 2023-01-13 13:50:32 +08:00
features Add ARIA support for Fomantic UI checkboxes (#22599) 2023-01-25 17:52:10 +02:00
markup Load asciicast css async (#22502) 2023-01-18 12:19:38 -06:00
modules Add Mermaid copy button, avoid unnecessary tooltip hide (#22225) 2022-12-25 18:17:48 +01:00
standalone Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
test Switch from jest to vitest (#21444) 2022-10-14 21:36:16 +08:00
bootstrap.js Quick fixes monaco-editor error: "vs.editor.nullLanguage" (#21734) 2022-11-09 18:02:19 +08:00
index.js JS refactors (#22227) 2022-12-24 00:03:11 +08:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
svg.js JS refactors (#22227) 2022-12-24 00:03:11 +08:00
svg.test.js Remove vitest globals (#21505) 2022-10-19 14:50:19 +08:00
utils.js Fixes #21895: standardize UTC tz for util tests (#21897) 2022-11-22 16:46:29 +08:00
utils.test.js Improvements for Content Copy (#21842) 2022-11-21 17:59:42 +08:00