Fix disabled for button link without href

This commit is contained in:
Lucas Larroche 2021-12-31 12:51:37 +07:00
parent 90f3eb9fb3
commit 07817a3fd1
17 changed files with 31 additions and 48 deletions

View file

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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

View file

@ -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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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;
} }