Skip to content

Commit

Permalink
fix: circle button styles and transition
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Oct 27, 2022
1 parent ecba32e commit 5e180d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Expand Up @@ -152,7 +152,7 @@ const CircleButton = ({
}, [active])

return (
<div
<button
data-active={active}
data-recently-changed={recentlyChanged}
style={style}
Expand All @@ -163,7 +163,7 @@ const CircleButton = ({
{otherIcon && <TablerIcon name={otherIcon} />}
<TablerIcon name={icon} />
</div>
</div>
</button>
)
}

Expand Down
10 changes: 2 additions & 8 deletions tldraw/apps/tldraw-logseq/src/styles.css
Expand Up @@ -476,7 +476,7 @@ button.tl-select-input-trigger {
transform: translateY(-100%);
}

&[data-active='false']:hover {
&[data-active='false']:hover:not([data-recently-changed='true']) {
.tie {
transform: translateY(0);

Expand All @@ -499,7 +499,7 @@ button.tl-select-input-trigger {
}
}

&:hover {
&:hover:not([data-recently-changed='true']) {
color: var(--ls-primary-text-color);
background-color: var(--ls-secondary-background-color);

Expand All @@ -518,12 +518,6 @@ button.tl-select-input-trigger {
transition-delay: 0;
}

&[data-recently-changed='true'] {
i.tie {
transition-delay: 0.5s;
}
}

.tl-circle-button-icons-wrapper[data-icons-count='2'] {
position: relative;
width: 22px;
Expand Down

0 comments on commit 5e180d9

Please sign in to comment.