Skip to content

Commit c0dca2b

Browse files
committed
Fix: Tab - Vertical tab with tab group #1095
1 parent 3087a6c commit c0dca2b

3 files changed

Lines changed: 55 additions & 0 deletions

File tree

css/leptonChrome.css

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/leptonChromeESR.css

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tab/selected_tab/_box_shadow.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ $ucTabBackgroundShadowHard: drop-shadow(-1px 0px 0px var(--uc-tab-shadow-color,
1212
--uc-tab-shadow-color-bundle: var(--tab-line-color, var(--lwt-tab-line-color, rgba(128, 128, 142, 0.9)));
1313
}
1414

15+
#tabbrowser-tabs:not([noshadowfortests]) {
16+
.tab-background:is([selected], [multiselected]) {
17+
box-shadow: unset !important;
18+
filter: $ucTabBasicShadow;
19+
}
20+
21+
/* filter create new stacking context */
22+
&[expanded][orient="vertical"] .tab-background:is([selected], [multiselected]) .tab-group-line {
23+
height: calc(100% + 6px + var(--tab-block-margin)); // 6px: .tab-group-line's inset-block size
24+
left: calc(-1 * var(--tab-inner-inline-margin));
25+
transform: translateY(-2px); // .tab-group-line 's inset-inline-start size
26+
}
27+
}
1528
#tabbrowser-tabs:not([noshadowfortests]) .tab-background:is([selected], [multiselected]) {
1629
box-shadow: unset !important;
1730
filter: $ucTabBasicShadow;

0 commit comments

Comments
 (0)