kopia lustrzana https://github.com/shoelace-style/shoelace
fix active tab indicator position
rodzic
35cde2c3c3
commit
494be4f25b
|
@ -12,6 +12,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
|
|||
- Fixed a bug where `sl-alert` wouldn't always transition properly
|
||||
- Fixed a bug where using `sl-menu` inside a shadow root would break keyboard selections [#382](https://github.com/shoelace-style/shoelace/issues/382)
|
||||
- Fixed a bug where toggling `multiple` in `sl-select` would lead to a stale display label
|
||||
- Fixed a bug in `sl-tab-group` where changing `placement` could result in the active tab indicator being drawn a few pixels off
|
||||
- Improved `@watch` decorator to run after update instead of during
|
||||
- Updated `sl-menu-item` checked icon to `check` instead of `check2`
|
||||
|
||||
|
|
|
@ -277,13 +277,13 @@ export default class SlTabGroup extends LitElement {
|
|||
case 'top':
|
||||
case 'bottom':
|
||||
this.indicator.style.width = `${width}px`;
|
||||
(this.indicator.style.height as string | undefined) = undefined;
|
||||
this.indicator.style.height = 'auto';
|
||||
this.indicator.style.transform = `translateX(${offsetLeft}px)`;
|
||||
break;
|
||||
|
||||
case 'left':
|
||||
case 'right':
|
||||
(this.indicator.style.width as string | undefined) = undefined;
|
||||
this.indicator.style.width = 'auto';
|
||||
this.indicator.style.height = `${height}px`;
|
||||
this.indicator.style.transform = `translateY(${offsetTop}px)`;
|
||||
break;
|
||||
|
|
Ładowanie…
Reference in New Issue