mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 10:46:14 -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,
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue