1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-30 19:22:08 +00:00
forgejo/web_src/js/modules
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
..
fomantic Add form field id generation, remove duplicated ids (#30546) 2024-04-22 08:09:00 +02:00
dimmer.ts chore(ui): remove fomantic's dimmer module (#7416) 2025-04-02 12:54:54 +00:00
dirauto.js [gitea] Avoid showing unnecessary JS errors when there are elements with different origin on the page (#29081) 2024-02-10 10:53:43 +01:00
dropdown.ts feat(ui): redesign user profile actions layout (#7906) 2025-06-24 14:16:51 +02:00
fetch.js Refactor request function (#29187) 2024-02-17 23:24:31 +01:00
fetch.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
fomantic.js feat: remove fomantic's tab module (#8587) 2025-07-21 22:33:17 +02:00
modal.ts feat: first native dialog for modal (#8859) 2025-09-20 20:09:17 +02:00
sortable.js Drag-and-drop improvements for projects and issue pins (#29875) 2024-03-30 07:17:31 +01:00
stores.js Refactor diffFileInfo / DiffTreeStore (#24998) 2023-05-30 18:53:15 +08:00
tab.ts feat: remove fomantic's tab module (#8587) 2025-07-21 22:33:17 +02:00
tippy.js Fix issue/comment menus 2024-12-30 16:06:18 +01:00
toast.js Reimplement editor Tab handling with accessibility safeguards (#6813) 2025-05-25 19:17:03 +02:00
toast.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00