forgejo/web_src/css
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
..
chroma
codemirror
editor fix(ui): ensure consistent switch position in markdown editor (#7492) 2025-04-09 17:37:46 +00:00
features chore(ui): clean up hashbox CSS, small design changes (#7822) 2025-05-25 12:51:27 +02:00
markup feat(ui): render ordered checkbox lists with numbers (#9184) 2025-09-06 16:23:06 +02:00
modules feat: first native dialog for modal (#8859) 2025-09-20 20:09:17 +02:00
repo feat(ui): improve display of tags in commit list (#9257) 2025-09-12 14:31:08 +02:00
shared fix(ui): improve milestone/project header consistency (#7174) 2025-03-09 16:24:52 +00:00
standalone
themes feat(ui): implement hover for switch (#9057) 2025-08-30 18:54:11 +02:00
actions.css
admin.css
base.css fix(ui): remove unused rule with unused class .tight (#8573) 2025-07-19 15:49:48 +02:00
dashboard.css
explore.css
font_i18n.css
form.css feat!: Abusive content reporting (#6977) 2025-05-18 08:05:16 +00:00
helpers.css
home.css fix(ui): center footer links (#7925) 2025-05-22 15:27:00 +02:00
index.css feat: first native dialog for modal (#8859) 2025-09-20 20:09:17 +02:00
install.css
migrate.css feat(ui): redesign migration selection screen (#6795) 2025-04-19 13:51:35 +00:00
org.css feat(ui): improve org header with new noJS dropdown and more options (#8572) 2025-07-23 02:06:13 +02:00
repo.css fix(ui): improve signature box responsiveness (#8984) 2025-09-11 16:20:36 +02:00
review.css fix(ui): don't allow comment boxes to stretch outside diff boundries on small device UI (#9052) 2025-08-29 21:32:50 +02:00
user.css chore(ui): improve dropdown opener visibility (#9317) 2025-09-17 20:29:52 +02:00