Skip to content

Commit

Permalink
fix: sticky bar behavior on fixed heights
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCastigliano committed Jan 31, 2024
1 parent e2b6faf commit c3c72fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/container/sticky-bar/sticky-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
color: var(--sbb-color-white-default);
}

:host(:is([disable-animation], [data-disable-animation])) {
:host([disable-animation]) {
--sbb-sticky-bar-animation-duration: 0.1ms;
}

Expand Down
2 changes: 0 additions & 2 deletions src/components/container/sticky-bar/sticky-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export class SbbStickyBarElement extends LitElement {
if (this._intersector) {
this._observer.observe(this._intersector);
}

toggleDatasetEntry(this, 'disableAnimation', true);
}

protected override firstUpdated(): void {
Expand Down

0 comments on commit c3c72fb

Please sign in to comment.