diff mod_http_oauth2/html/consent.html @ 5625:e86a1018cdb3

mod_http_oauth2: Present errors in HTML <dialog> Nice semantic things that don't require JavaScript
author Kim Alvefur <zash@zash.se>
date Mon, 31 Jul 2023 02:07:24 +0200
parents 6109496a7ccc
children f889ff779571
line wrap: on
line diff
--- a/mod_http_oauth2/html/consent.html	Mon Jul 31 02:05:49 2023 +0200
+++ b/mod_http_oauth2/html/consent.html	Mon Jul 31 02:07:24 2023 +0200
@@ -7,10 +7,11 @@
 <link rel="stylesheet" href="style.css" />
 </head>
 <body>
-	{state.error&<div class="error">
+{state.error&
+	<dialog open="" class="error">
 		<p>{state.error}</p>
-	</div>}
-
+		<form method="dialog"><button>dismiss</button></form>
+	</dialog>}
 	<header>
 	<h1>{site_name}</h1>
 	</header>