mirror of
https://github.com/picocss/pico.git
synced 2025-04-28 03:56:15 -04:00
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:
parent
e7ffe74a05
commit
6068002080
1 changed files with 6 additions and 2 deletions
|
@ -198,10 +198,14 @@ input[type="reset"] {
|
||||||
button,
|
button,
|
||||||
input[type="submit"],
|
input[type="submit"],
|
||||||
input[type="button"],
|
input[type="button"],
|
||||||
input[type="reset"],
|
input[type="reset"] {
|
||||||
a[role="button"] {
|
|
||||||
&[disabled] {
|
&[disabled] {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// The <a> tag does not have a `disabled` attribute.
|
||||||
|
a[role="button"][href=""] {
|
||||||
|
opacity: 0.5;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue