Skip to content

Commit 780ac6c

Browse files
authored
Fix disappearing search icon in WebKit (#1858)
1 parent 51f4afa commit 780ac6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

special-pages/pages/new-tab/app/omnibar/components/TabSwitcher.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
justify-content: center;
2727
padding: 0 var(--sp-3);
2828
position: relative;
29+
transform: translateZ(0); /* Force .tab into its own stacking context. Workaround for WebKit mistakenly layering .blob on top of .tab when .App_mainLayout animates. */
2930
z-index: 1;
3031

3132
&:hover:not([aria-selected="true"])::before {
@@ -53,6 +54,7 @@
5354
translate: calc(2px + var(--tab-index) * (100% + 2px));
5455
width: calc((100% - 4px - (var(--tab-count) - 1) * 2px) / var(--tab-count));
5556
will-change: translate;
57+
z-index: 0;
5658

5759
[data-theme="dark"] & {
5860
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.24), 0 1px 2px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);

0 commit comments

Comments
 (0)