From be01755f44442c0fa174a2c7fe3dfd39f185920f Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 7 Mar 2024 19:41:20 +0100 Subject: view: Remove nested anchor and button elements There is the need to add buttons to the recipe server which act like a anchor tag (link). This can be achieved by nesting anchor and button tag. The problem is that if the user cycles through the elements of the page with the 'tab' key such a button is handled as two overlapping elements instead of one. This commit solves the issue by using buttons with the attribute `onclick="window.location.href='';`. --- view/html/recipe-confirm-deletion.html | 2 +- view/html/recipe-edit.html | 2 +- view/html/recipe.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'view') diff --git a/view/html/recipe-confirm-deletion.html b/view/html/recipe-confirm-deletion.html index 74d6ede..7ad08a3 100644 --- a/view/html/recipe-confirm-deletion.html +++ b/view/html/recipe-confirm-deletion.html @@ -9,7 +9,7 @@

Do you really want to delete this recipe?

- +
{{ template "footer" }} diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html index 7dda7ff..aeb8e59 100644 --- a/view/html/recipe-edit.html +++ b/view/html/recipe-edit.html @@ -32,7 +32,7 @@

- + {{ template "footer" }} diff --git a/view/html/recipe.html b/view/html/recipe.html index 59ed575..c2d9ddc 100644 --- a/view/html/recipe.html +++ b/view/html/recipe.html @@ -9,8 +9,8 @@

- edit - delete + +

{{ if ne .Portions "" }}

Portions: {{.Portions}}

{{end}}{{ if ne .Url "" }}

Original recipe: link

{{end}}{{ if ne .Notes "" }} -- cgit v1.2.3-70-g09d2