Skip to content

Commit

Permalink
fix(kit): Tabs fix dropdown styles (#4814)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored Jul 3, 2023
1 parent 57239e2 commit 3c0ce9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
MutationObserverService,
} from '@ng-web-apis/mutation-observer';
import {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk';
import {tuiDropdownOptionsProvider} from '@taiga-ui/core';
import {merge, Observable} from 'rxjs';
import {debounceTime, filter, startWith, takeUntil, tap} from 'rxjs/operators';

Expand All @@ -15,6 +16,7 @@ export const TUI_TABS_PROVIDERS: Provider[] = [
TuiResizeService,
TuiDestroyService,
MutationObserverService,
tuiDropdownOptionsProvider({align: `right`}),
{
provide: MUTATION_OBSERVER_INIT,
useValue: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,17 @@
}

.t-dropdown {
padding: 0.5rem 0;
padding: 0.25rem 0;

/* stylelint-disable */
::ng-deep *[tuiTab] {
width: calc(100% - 1rem);
width: calc(100% - 0.75rem);
height: 2.75rem;
justify-content: flex-start;
margin: 0 0.5rem;
border-radius: var(--tui-radius-s);
margin: 0.125rem 0.375rem;
padding: 0 0.625rem;
border-radius: var(--tui-radius-s);
font: var(--tui-font-text-m);
color: var(--tui-text-01);

&:before {
Expand Down

0 comments on commit 3c0ce9d

Please sign in to comment.