docs: avoid showing "Copied" if copying fails (#3397)
I noticed that in denoland/fresh#3393 it looks like it's possible that the "Copied"/Check icon will be shown even if copying to clipboard fails. This PR changes it so that the Check icon only shows if copy succeeds.
This commit is contained in:
+1
-10
@@ -94,16 +94,7 @@ html[data-theme="dark"] ::selection {
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.group:not([data-copied]) .group-not-copied {
|
||||
display: block;
|
||||
}
|
||||
.group[data-copied] .group-not-copied {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.group[data-copied] .group-copied {
|
||||
display: block;
|
||||
}
|
||||
.group[data-copied] .group-not-copied,
|
||||
.group:not([data-copied]) .group-copied {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user