summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-04-05 21:08:03 +0200
committerxengineering <me@xengineering.eu>2022-04-05 21:08:03 +0200
commitd1e432e4bd53d5214fc2ac1fbb01393bf9c425f5 (patch)
tree062a05b0c64327eed8edcd4568b7865c632317ff
parenta0478547847d601ea0511b567414d07db86b8d0f (diff)
downloadlibweb-main.tar
libweb-main.tar.zst
libweb-main.zip
Allow buttons to contain anchorsHEADmain
-rw-r--r--libweb.css5
-rw-r--r--test.html1
2 files changed, 6 insertions, 0 deletions
diff --git a/libweb.css b/libweb.css
index 50e9b68..127b56f 100644
--- a/libweb.css
+++ b/libweb.css
@@ -148,6 +148,11 @@ button {
border-radius: 0.5em;
}
+button a {
+ color: inherit;
+ background-color: inherit;
+}
+
img {
margin-top: var(--vertical-space-medium);
margin-bottom: var(--vertical-space-medium);
diff --git a/test.html b/test.html
index 68ff6be..190d9e8 100644
--- a/test.html
+++ b/test.html
@@ -85,6 +85,7 @@ contact via mail: me@xengineering.eu
<!-- button -->
<button>button</button>
+ <button><a href="https://example.com">button as link</a></button>
<!-- img -->
<img src="./demo.png" alt="An example image">