refactor(SelectionToolbar): add transition effects to action buttons (#6869)

* refactor(SelectionToolbar): add transition effects to action buttons

* refactor: reduce transition duration
This commit is contained in:
one 2025-06-06 09:24:11 +08:00 committed by GitHub
parent dad9873529
commit fab5674da7

View File

@ -310,15 +310,22 @@ const ActionButton = styled.div`
cursor: pointer;
border-radius: 4px;
padding: 4px 6px;
transition: all 0.1s ease-in-out;
will-change: color, background-color;
.btn-icon {
width: 16px;
height: 16px;
color: var(--color-selection-toolbar-text);
background-color: transparent;
transition: color 0.1s ease-in-out;
will-change: color;
}
.btn-title {
color: var(--color-selection-toolbar-text);
--font-size: 14px;
transition: color 0.1s ease-in-out;
will-change: color;
}
&:hover {
color: var(--color-primary);