Skip to content

way to style single dropdown #9246

Discussion options

You must be logged in to vote

To change CSS you can use tuiDropdownAppearance="my-dropdown" or provide it as DI options and then style it in global/unencapsulated styles:

tui-dropdown[data-appearance="my-dropdown"] {
  ...
}

If you want to change animations you would need to provide your own entire component as TUI_DROPDOWN_COMPONENT since Angular Animations are not dynamically configurable. You can probably extend our component so you do not have to bother with positioning:
https://github.com/taiga-family/taiga-ui/blob/main/projects/core/directives/dropdown/dropdown.component.ts

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by waterplea
Comment options

You must be logged in to vote
1 reply
@waterplea
Comment options

Comment options

You must be logged in to vote
2 replies
@waterplea
Comment options

@vytautas-pranskunas-
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants