Skip to content

Commit

Permalink
fix: add tabs sizes to TopNav
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschaap authored and Westbrook committed Mar 22, 2023
1 parent 3acfc30 commit 159bc89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/top-nav/src/TopNav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { ifDefined } from '@spectrum-web-components/base/src/directives.js';
import { ResizeController } from '@lit-labs/observers/resize_controller.js';
import { TopNavItem } from './TopNavItem.js';

import tabsSizes from '@spectrum-web-components/tabs/src/spectrum-tabs-sizes.css.js';
import tabStyles from '@spectrum-web-components/tabs/src/tabs.css.js';
import { ScaledIndicator } from '@spectrum-web-components/tabs/src/Tabs.js';

Expand All @@ -42,7 +43,7 @@ const noSelectionStyle = 'transform: translateX(0px) scaleX(0) scaleY(0)';

export class TopNav extends SizedMixin(SpectrumElement) {
public static override get styles(): CSSResultArray {
return [tabStyles, ScaledIndicator.baseStyles()];
return [tabsSizes, tabStyles, ScaledIndicator.baseStyles()];
}

@property()
Expand Down

0 comments on commit 159bc89

Please sign in to comment.