Skip to content

Commit ac10f95

Browse files
committed
Fix tab-group vertical scroll bar jittering.
1 parent 02b9434 commit ac10f95

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

docs/changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1313
### Fixed
1414

1515
- Fixed `six-checkbox` checkbox-input being distorted with multiline content/text
16+
- tab group animation smoothing when using left / right layout
1617

1718
## 4.2.1 - 2024-03-14
1819

libraries/ui-library/src/components/six-tab/six-tab.scss

+16
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,22 @@
4343
&:hover:not(.tab--disabled) {
4444
color: var(--six-tab-color-hover);
4545
}
46+
47+
&.tab--left,
48+
&.tab--right {
49+
display: inline-block;
50+
text-align: left;
51+
}
52+
53+
&.tab--left::before,
54+
&.tab--right::before {
55+
display: block;
56+
font-weight: var(--six-font-weight-bold);
57+
content: attr(title);
58+
height: 0;
59+
overflow: hidden;
60+
visibility: hidden;
61+
}
4662
}
4763

4864
.tab__close-button {

libraries/ui-library/src/components/six-tab/six-tab.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export class SixTab {
8888
aria-disabled={this.disabled ? 'true' : 'false'}
8989
aria-selected={this.active ? 'true' : 'false'}
9090
tabindex={this.disabled || !this.active ? '-1' : '0'}
91+
title={this.host.innerHTML}
9192
>
9293
<slot />
9394
{this.closable && (

0 commit comments

Comments
 (0)