Fix button.scss.

The `<a>` tag does not have `disabled` attribute and in order to "disable" them it is recommended to remove href attribute.

https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element
https://www.w3.org/TR/2021/REC-html-aria-20211209/#el-a
This commit is contained in:
Masahiko Shin 2021-12-25 18:03:25 +09:00
parent e7ffe74a05
commit 6068002080

View file

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