Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JesmoDev committed Sep 18, 2023
1 parent aaccab3 commit a785350
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/uui-tabs/lib/uui-tab-group.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ export class UUITabGroupElement extends LitElement {
reflect: true,
attribute: 'dropdown-content-direction',
})
priorityNavigationDropdownContentDirection: 'vertical' | 'horizontal' =
'vertical';
dropdownContentDirection: 'vertical' | 'horizontal' = 'vertical';

/**
* Set the location of the active bar in the dropdown.
Expand All @@ -114,11 +113,8 @@ export class UUITabGroupElement extends LitElement {
reflect: true,
attribute: 'dropdown-active-bar-location',
})
public priorityNavigationDropdownActiveBarLocation?:
| 'top'
| 'bottom'
| 'left'
| 'right' = 'left';
public dropdownActiveBarLocation?: 'top' | 'bottom' | 'left' | 'right' =
'left';

#tabElements: HTMLElement[] = [];

Expand Down Expand Up @@ -219,7 +215,6 @@ export class UUITabGroupElement extends LitElement {
}

if (newBreakpoint === this.#oldBreakpoint) return;
console.log(newBreakpoint, this.#oldBreakpoint);
this.#oldBreakpoint = newBreakpoint;

// Do the update
Expand Down Expand Up @@ -250,8 +245,7 @@ export class UUITabGroupElement extends LitElement {
proxyTab.addEventListener('click', this.#onTabClicked);
proxyTab.classList.add('hidden-tab');
proxyTab.style.display = '';
proxyTab.activeBarLocation =
this.priorityNavigationDropdownActiveBarLocation;
proxyTab.activeBarLocation = this.dropdownActiveBarLocation;

// Link the proxy tab to the original tab
this.#hiddenTabElementsMap.set(proxyTab, tab);
Expand Down

0 comments on commit a785350

Please sign in to comment.