Fix disabled for button link without href

This commit is contained in:
Lucas Larroche 2021-12-31 12:51:37 +07:00
parent 90f3eb9fb3
commit 07817a3fd1
17 changed files with 31 additions and 48 deletions

View file

@ -195,17 +195,12 @@ input[type="reset"] {
}
// Button [disabled]
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
&[disabled] {
opacity: 0.5;
pointer-events: none;
}
}
// The <a> tag does not have a `disabled` attribute.
a[role="button"][href=""] {
button[disabled],
input[type="submit"][disabled],
input[type="button"][disabled],
input[type="reset"][disabled],
a[role="button"]:not([href]),
a[role="button"][disabled] {
opacity: 0.5;
pointer-events: none;
}
}