mirror of
https://github.com/picocss/pico.git
synced 2025-04-24 18:26:14 -04:00
Fix disabled for button link without href
This commit is contained in:
parent
90f3eb9fb3
commit
07817a3fd1
17 changed files with 31 additions and 48 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue