Skip to content

Commit 0d2856d

Browse files
Fixes annotation button contents from moving when switching from default to selected state. Improves background of the TopBar.
1 parent e2a8feb commit 0d2856d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

web/libs/editor/src/components/AnnotationsCarousel/AnnotationButton.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
border-style: solid;
77
background-color: var(--color-neutral-surface);
88
margin-top: 2px;
9-
align-items: center;
9+
align-items: flex-start;
1010
gap: 8px;
1111
cursor: pointer;
1212
height: calc(100% - 3px);
1313
min-width: 186px;
1414
border-color: var(--color-neutral-border);
15-
transition: all 150ms ease-out;
15+
transition-property: background-color, border-color;
16+
transition-duration: 150ms;
17+
transition-timing-function: ease-out;
1618

1719
&__user {
1820
line-height: 16px;
@@ -85,6 +87,8 @@
8587
background-color: var(--color-neutral-background);
8688
border-color: var(--color-neutral-border);
8789
transform: translate(0, 1px);
90+
margin-top: 1px;
91+
height: calc(100% - 2px);
8892

8993
&:hover {
9094
cursor: default;

web/libs/editor/src/components/TopBar/TopBar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
&_newLabelingUI {
4242
display: block;
43-
background-color: var(--color-neutral-surface-inset);
43+
background-color: var(--color-neutral-background);
4444
height: 42px;
4545
border-bottom: 1px solid var(--color-neutral-border);
4646

0 commit comments

Comments
 (0)