diff --git a/packages/bbui/src/Button/Button.svelte b/packages/bbui/src/Button/Button.svelte index a3d2df069a..e8f6b4500e 100644 --- a/packages/bbui/src/Button/Button.svelte +++ b/packages/bbui/src/Button/Button.svelte @@ -13,6 +13,7 @@ export let icon = undefined export let active = false export let tooltip = undefined + export let dataCy let showTooltip = false @@ -27,6 +28,7 @@ class:active class="spectrum-Button spectrum-Button--size{size.toUpperCase()}" {disabled} + data-cy={dataCy} on:click|preventDefault on:mouseover={() => (showTooltip = true)} on:focus={() => (showTooltip = true)} diff --git a/packages/builder/src/components/common/TemplateCard.svelte b/packages/builder/src/components/common/TemplateCard.svelte index dc8cdc9610..ab2e874b55 100644 --- a/packages/builder/src/components/common/TemplateCard.svelte +++ b/packages/builder/src/components/common/TemplateCard.svelte @@ -37,7 +37,11 @@ -
@@ -52,8 +56,7 @@ } .template-card:hover .template-thumbnail-action-overlay { - display: flex; - flex-direction: column; + opacity: 1; } .template-thumbnail-action-overlay { @@ -62,10 +65,13 @@ left: 0px; width: 100%; height: 70%; - display: none; + display: flex; + flex-direction: column; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.7); + opacity: 0; + transition: opacity var(--spectrum-global-animation-duration-100) ease; border-top-right-radius: inherit; border-top-left-radius: inherit; } diff --git a/packages/builder/src/components/common/TemplateDisplay.svelte b/packages/builder/src/components/common/TemplateDisplay.svelte index f7954788b6..facefd1cbc 100644 --- a/packages/builder/src/components/common/TemplateDisplay.svelte +++ b/packages/builder/src/components/common/TemplateDisplay.svelte @@ -1,5 +1,13 @@ -