Skip to content

fix: use native <dialog>#113

Merged
WofWca merged 1 commit intomainfrom
wofwca/nativify-dialog
Feb 15, 2026
Merged

fix: use native <dialog>#113
WofWca merged 1 commit intomainfrom
wofwca/nativify-dialog

Conversation

@WofWca
Copy link
Member

@WofWca WofWca commented Jan 5, 2026

Most importantly, this allows closing the dialog with Escape.

A (positive?) side effect is that in the dark theme
when opening the dialog
we will darken the background instead of lightening it.

I have tested this on narrow screens and wide screens,
comparing side-by-side with the original version.
Everything should look almost the same, maybe except
for the backdrop.

This also fixes a small issue where the contents outside the dialog
were keyboard-interactive.

@hpk42 hpk42 added the apps/ page for issues related to apps/ page label Feb 14, 2026
@adbenitez
Copy link
Contributor

@WofWca there are conflicts :(

@WofWca
Copy link
Member Author

WofWca commented Feb 15, 2026

Will rebase now.

@WofWca WofWca force-pushed the wofwca/nativify-dialog branch from cbcd1e2 to a287623 Compare February 15, 2026 15:33
@WofWca
Copy link
Member Author

WofWca commented Feb 15, 2026

CI is failing because of #127

Also I just found an issue with this where the dialog doesn't take full width if the content is narrow. Let me fix that.
Edit: resolved.

@WofWca WofWca force-pushed the wofwca/nativify-dialog branch 2 times, most recently from 30d1b82 to 8a58e39 Compare February 15, 2026 16:01
@adbenitez
Copy link
Contributor

there seems to be still some linter warnings

Most importantly, this allows closing the dialog with Escape.

A (positive?) side effect is that in the dark theme
when opening the dialog
we will darken the background instead of lightening it.

I have tested this on narrow screens and wide screens,
comparing side-by-side with the original version.
Everything should look almost the same, maybe except
for the backdrop.

This also fixes a small issue where the contents outside the dialog
were keyboard-interactive.
@WofWca WofWca force-pushed the wofwca/nativify-dialog branch from 8a58e39 to ba880f6 Compare February 15, 2026 16:06
@WofWca
Copy link
Member Author

WofWca commented Feb 15, 2026

JS, CSS, HTML clear now

@WofWca WofWca merged commit f30fd30 into main Feb 15, 2026
1 check passed
@WofWca WofWca deleted the wofwca/nativify-dialog branch February 15, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/ page for issues related to apps/ page

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants