forgejo/templates
Gusted aa345c9e0c feat: first native dialog for modal (#8859)
- The current implementation for modals is provided by fomantic UI.
- This patch introduces a new implementation that relies on the `<dialog>` element to provide modal, whereby the heavy lifting is done by the browser.
- This implementation is considerably simpler, accessible (although untested) and lightweight. It is capable of replacing fomantic UI's modal implementation + our dimmer implementation (~2k lines of code and CSS).[^1] As a first step the empty content modal is migrated.
- This brings in the CSS needed to display `<dialog>` and a helper function that hides some boilerplate code that's needed to show `<dialog>` as a modal.
- Add a E2E test that shows the modal's cancel and approve button works.

[^1]: The heavy work has already been done by me in a local branch, but reviewing that gigantic patch in one PR is not doable.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8859
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-09-20 20:09:17 +02:00
..
admin feat: Global 2FA enforcement (#8753) 2025-08-15 10:56:45 +02:00
api/packages/pypi
base feat(ui): improve the global noJS notice (#9336) 2025-09-18 06:48:28 +02:00
custom
devtest
explore
htmx fix(ui): Make 'Clear milestone' work with HTMX (#8266) 2025-08-11 20:10:10 +02:00
mail fix(email): actions notification template confuses branch with PR (#8448) 2025-07-09 09:43:33 +02:00
moderation
org fix: preserved 'Custom access' even after no permissions (#8943) 2025-09-01 15:19:17 +02:00
package several fixes of ALT Package registry (#8475) 2025-07-10 17:12:07 +02:00
projects feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
repo feat: first native dialog for modal (#8859) 2025-09-20 20:09:17 +02:00
shared feat: support Markdown editor bold & italic keyboard shortcuts (#9110) 2025-09-08 11:44:21 +02:00
status
swagger Update Swagger annotations to reflect actual behavior (#9138) 2025-09-15 11:55:49 +02:00
user feat(ui): improve subscriptions screen filters (#9192) 2025-09-07 05:52:19 +02:00
webhook feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
home.tmpl
home_forgejo.tmpl
install.tmpl
post-install.tmpl