mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 17:36:15 -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
|
@ -980,12 +980,9 @@ input[type=reset]:focus {
|
||||||
button[disabled],
|
button[disabled],
|
||||||
input[type=submit][disabled],
|
input[type=submit][disabled],
|
||||||
input[type=button][disabled],
|
input[type=button][disabled],
|
||||||
input[type=reset][disabled] {
|
input[type=reset][disabled],
|
||||||
opacity: 0.5;
|
a[role=button]:not([href]),
|
||||||
pointer-events: none;
|
a[role=button][disabled] {
|
||||||
}
|
|
||||||
|
|
||||||
a[role=button][href=""] {
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.classless.min.css
vendored
2
css/pico.classless.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1162,12 +1162,9 @@ a[role=button].outline.contrast:focus {
|
||||||
button[disabled],
|
button[disabled],
|
||||||
input[type=submit][disabled],
|
input[type=submit][disabled],
|
||||||
input[type=button][disabled],
|
input[type=button][disabled],
|
||||||
input[type=reset][disabled] {
|
input[type=reset][disabled],
|
||||||
opacity: 0.5;
|
a[role=button]:not([href]),
|
||||||
pointer-events: none;
|
a[role=button][disabled] {
|
||||||
}
|
|
||||||
|
|
||||||
a[role=button][href=""] {
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -950,12 +950,9 @@ input[type=reset]:focus {
|
||||||
button[disabled],
|
button[disabled],
|
||||||
input[type=submit][disabled],
|
input[type=submit][disabled],
|
||||||
input[type=button][disabled],
|
input[type=button][disabled],
|
||||||
input[type=reset][disabled] {
|
input[type=reset][disabled],
|
||||||
opacity: 0.5;
|
a[role=button]:not([href]),
|
||||||
pointer-events: none;
|
a[role=button][disabled] {
|
||||||
}
|
|
||||||
|
|
||||||
a[role=button][href=""] {
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.fluid.classless.min.css
vendored
2
css/pico.fluid.classless.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
css/pico.min.css
vendored
2
css/pico.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1090,12 +1090,9 @@ a[role=button].outline.contrast:focus {
|
||||||
button[disabled],
|
button[disabled],
|
||||||
input[type=submit][disabled],
|
input[type=submit][disabled],
|
||||||
input[type=button][disabled],
|
input[type=button][disabled],
|
||||||
input[type=reset][disabled] {
|
input[type=reset][disabled],
|
||||||
opacity: 0.5;
|
a[role=button]:not([href]),
|
||||||
pointer-events: none;
|
a[role=button][disabled] {
|
||||||
}
|
|
||||||
|
|
||||||
a[role=button][href=""] {
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.slim.min.css
vendored
2
css/pico.slim.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -195,17 +195,12 @@ input[type="reset"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Button [disabled]
|
// Button [disabled]
|
||||||
button,
|
button[disabled],
|
||||||
input[type="submit"],
|
input[type="submit"][disabled],
|
||||||
input[type="button"],
|
input[type="button"][disabled],
|
||||||
input[type="reset"] {
|
input[type="reset"][disabled],
|
||||||
&[disabled] {
|
a[role="button"]:not([href]),
|
||||||
opacity: 0.5;
|
a[role="button"][disabled] {
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// The <a> tag does not have a `disabled` attribute.
|
|
||||||
a[role="button"][href=""] {
|
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue