0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 17:34:11 -05:00
forgejo/web_src/js/modules/fomantic
Giteabot d573c22a98
Fix unclickable checkboxes (#30195) (#30199)
Backport #30195 by @silverwind

Fix https://github.com/go-gitea/gitea/issues/30185, regression from
https://github.com/go-gitea/gitea/pull/30162.

The checkboxes were unclickable because the label was positioned over
the checkbox with `padding`. Now it uses `margin` so the checkbox itself
will be clickable in all cases.

Secondly, I changed the for/id linking to also add missing `for`
attributes when `id` is present. The other way around (only `for`
present) is currently not handled and I think there are likey no
occurences in the code and introducing new non-generated `id`s might
cause problems elsewhere if we do, so I skipped on that.

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 9d38c4d60ef5bd015e1430386e38d9f32e050f8f)
2024-04-08 11:30:27 +02:00
..
api.js
aria.md Remove fomantic checkbox module (#30162) (#30168) 2024-04-08 11:28:31 +02:00
base.js
checkbox.js Fix unclickable checkboxes (#30195) (#30199) 2024-04-08 11:30:27 +02:00
dropdown.js Remove jQuery .attr from the Fomantic dropdowns (#30114) 2024-03-30 07:17:31 +01:00
modal.js Remove jQuery .attr from the Fomantic modal cancel buttons (#30113) 2024-03-30 07:17:30 +01:00
transition.js