Remove not allowed cursor from Contributors and BranchSelector

Adds also HoverPopover tooltips, with some hints
This commit is contained in:
Sebastian Martinez
2023-11-17 10:19:57 +01:00
parent 709450cbac
commit b331f446ee
10 changed files with 111 additions and 69 deletions
+5 -1
View File
@@ -16,6 +16,7 @@
export let autofocus: boolean = false;
export let disabled: boolean = false;
export let notAllowed: boolean = true;
export let styleFontFamily: string | undefined = undefined;
export let stylePadding: string | undefined = undefined;
@@ -40,9 +41,11 @@
}
button:disabled {
cursor: not-allowed;
color: var(--color-foreground-disabled);
}
button:disabled.not-allowed {
cursor: not-allowed;
}
.small {
height: var(--button-tiny-height);
@@ -214,6 +217,7 @@
on:mouseout
on:mouseover
class:disabled
class:not-allowed={notAllowed}
class:small={size === "small"}
class:regular={size === "regular"}
class:large={size === "large"}
+1 -1
View File
@@ -27,7 +27,7 @@
box-shadow: var(--elevation-low);
position: relative;
right: 1rem;
z-index: 1;
z-index: 10;
}
</style>
-1
View File
@@ -138,7 +138,6 @@
const preElement = node.parentElement as HTMLElement;
const copyButton = document.createElement("radicle-clipboard");
copyButton.setAttribute("text", node.textContent || "");
copyButton.setAttribute("small", "");
preElement.prepend(copyButton);
const className = Array.from(node.classList).find(name =>