From 550e5246fc27785d6f274a3aee7bf99eae34d05c Mon Sep 17 00:00:00 2001
From: pietvanzoen
Date: Wed, 24 May 2023 06:59:02 +0200
Subject: [PATCH] Add class=button example and make height consistent with
buttons
---
index.html | 4 ++++
simple.css | 11 +++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 5667704..7df2b02 100644
--- a/index.html
+++ b/index.html
@@ -1090,6 +1090,10 @@
+
+ <a class=button>
+ <a class=button aria-disabled=true>
+
[Top]
diff --git a/simple.css b/simple.css
index ab8584a..117dc24 100644
--- a/simple.css
+++ b/simple.css
@@ -669,14 +669,21 @@ dialog::backdrop {
color: var(--bg);
padding: 0.7rem 0.9rem;
margin: 0.5rem 0;
+ line-height: 1;
}
-.button:hover,
-.button:focus {
+.button:not([aria-disabled=true]):hover,
+.button:not([aria-disabled=true]):focus {
filter: brightness(1.4);
cursor: pointer;
}
+.button[aria-disabled="true"] {
+ cursor: not-allowed;
+ background-color: var(--disabled);
+ color: var(--text-light)
+}
+
.notice {
background: var(--accent-bg);
border: 2px solid var(--border);