Skip to content

Commit

Permalink
Fix tab-group vertical scroll bar jittering.
Browse files Browse the repository at this point in the history
  • Loading branch information
belahorvath committed Mar 20, 2024
1 parent 90d31fc commit c46a91f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Upcoming

### Added

### Changed

### Fixed

- tab group animation smoothing when using left / right layout

## 4.2.1 - 2024-03-14

### Fixed
Expand Down
16 changes: 16 additions & 0 deletions libraries/ui-library/src/components/six-tab/six-tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@
&:hover:not(.tab--disabled) {
color: var(--six-tab-color-hover);
}

&.tab--left,
&.tab--right {
display: inline-block;
text-align: left;
}

&.tab--left::before,
&.tab--right::before {
display: block;
font-weight: var(--six-font-weight-bold);
content: attr(title);
height: 0;
overflow: hidden;
visibility: hidden;
}
}

.tab__close-button {
Expand Down
1 change: 1 addition & 0 deletions libraries/ui-library/src/components/six-tab/six-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export class SixTab {
aria-disabled={this.disabled ? 'true' : 'false'}
aria-selected={this.active ? 'true' : 'false'}
tabindex={this.disabled || !this.active ? '-1' : '0'}
title={this.host.innerHTML}
>
<slot />
{this.closable && (
Expand Down

0 comments on commit c46a91f

Please sign in to comment.