fix(ui/buttons): implement .disabled class (#10410)

Followup to https://codeberg.org/forgejo/forgejo/pulls/9359. `templates/repo/issue/list.tmpl` had buttons changed which had `.disabled` on them conditionally.

* adjust devtest page to have such buttons
* implement `.disabled` for the newer buttons that does the same thing as the `.ui` buttons do: apply custom opacity, disable pointer events
    * this is the most boring way of implementing this

Reported-by: @Gusted
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10410
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
0ko 2025-12-16 14:18:08 +01:00
parent 5862d930a1
commit 5088d3ab12
3 changed files with 39 additions and 18 deletions

View file

@ -36,6 +36,11 @@
&:focus {
text-decoration: none;
}
&.disabled {
opacity: var(--opacity-disabled);
pointer-events: none;
}
}
.button.primary {