diff --git a/dist/css/style.css b/dist/css/style.css index bf390ec..10e0711 100644 --- a/dist/css/style.css +++ b/dist/css/style.css @@ -10,6 +10,11 @@ margin-bottom: var(--block-spacing-vertical); } -button > hgroup { +[role="button"] > hgroup { margin-bottom: 0; } + +[role="button"] { + margin-bottom: var(--spacing); + width: 100%; +} diff --git a/script.py b/script.py index 3263cc6..abd0157 100644 --- a/script.py +++ b/script.py @@ -13,7 +13,13 @@ ), ( h("div", klass="item")( - h("button", klass="outline", href=item.get("url"), target="_blank")( + h( + "a", + role="button", + klass="outline", + href=item.get("url"), + target="_blank", + )( h("hgroup")( h("h4")(item.get("title")), h("h5")(item.get("description"))