Accessibility stuff

This commit is contained in:
2020-08-22 04:20:14 +02:00
parent 2ac02688ab
commit c800d22ccf
4 changed files with 14 additions and 8 deletions
+7 -2
View File
@@ -38,7 +38,7 @@ class SettingView(staticFileResolver: StaticFileResolver) : View(staticFileResol
}
section(classes = "m-4 p-4 bg-gray-800 rounded") {
h2(classes = "mb-4 text-red-600 text-lg font-semibold") {
h2(classes = "mb-4 text-red-400 text-lg font-semibold") {
+"Delete my account"
}
@@ -66,8 +66,13 @@ class SettingView(staticFileResolver: StaticFileResolver) : View(staticFileResol
error = validationErrors.find { it.dataPath == ".password" }?.message
)
checkBoxInput(name = "checked") {
id = "checked"
attributes["required"] = ""
+" Do you want to proceed ?"
label {
attributes["for"] = "checked"
+" Do you want to proceed ?"
}
}
button(
type = submit,