Skip to content

Commit c1bb064

Browse files
committed
[chrome] ux: mark tab tooltips as pointer-events: none and fix offset
1 parent e9fdcd3 commit c1bb064

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/chrome/src/components/TabStrip/TabTooltip.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ export function TabTooltip(props: { active: boolean; tab: Tab }) {
2424
}
2525
TabTooltip.style = css`
2626
:scope {
27+
pointer-events: none;
2728
position: absolute;
28-
top: 2.25em;
29+
top: calc(var(--tab-height) + 0.25em);
2930
left: 0;
3031
z-index: 1000;
3132
background: var(--popup);
3233
border: 1px solid var(--popup_border);
3334
border-radius: 4px;
34-
width: 20em;
35+
width: 17em;
3536
gap: 0.25em;
3637
flex-direction: column;
3738
display: none;

0 commit comments

Comments
 (0)