Mostly improvements from Linda
This commit is contained in:
1 parent
714d3464bd
commit
e36bec6b36
17 files changed
+197
-73
No files matched your search
@@ -18,7 +18,7 @@ export default function ChargedButton({
|
||||
children,
|
||||
style,
|
||||
className,
|
||||
holdDuration = 500,
|
||||
holdDuration = 600,
|
||||
onAction,
|
||||
disabled = false,
|
||||
red = false,
|
||||
@@ -119,6 +119,17 @@ export default function ChargedButton({
|
||||
/>
|
||||
|
||||
<span className={clsx(styles["charged-button-label"], "lancelot-regular")}>{children}</span>
|
||||
|
||||
<span
|
||||
className={clsx(styles["charged-button-label-clipped"], "lancelot-regular")}
|
||||
aria-hidden="true"
|
||||
style={{
|
||||
clipPath: `inset(0 ${clipPercent}% 0 0)`,
|
||||
WebkitClipPath: `inset(0 ${clipPercent}% 0 0)`,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</span>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user