Beautiful Rails confirmation dialogs (with zero JavaScript)
SMRTR summary
Modern browsers now support Invoker Commands and @starting-style, enabling beautiful confirmation dialogs without JavaScript. These features let developers replace Turbo's dated confirm() prompts with styled modals using declarative HTML attributes like command='show-modal' and closedby='any'. The approach integrates seamlessly with Rails' Turbo.config.forms.confirm system.
SMRTR provides this summary for quick context. The original article belongs to Daily.dev.
Read the original article