way to style single dropdown #9246
-
i need to style just one dropdown, remove bg color, remove border, etc... how to do it not affecting default ones? Also change slide animation or disable it at all? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
To change CSS you can use tui-dropdown[data-appearance="my-dropdown"] {
...
} If you want to change animations you would need to provide your own entire component as |
Beta Was this translation helpful? Give feedback.
-
i will do something. However what i quikli saw is - // @bad TODO: OnPush |
Beta Was this translation helpful? Give feedback.
-
Observable as comunicator?
…On Mon, 30 Sept 2024, 14:26 Alex Inkin, ***@***.***> wrote:
Entire Taiga UI is built with OnPush too, that's why there's a TODO to
make this component OnPush too :) But it's a bit tricky in its case because
it has to be able to communicate change detection in 2 directions.
Dropdowns show a template and whenever change detection is ran in the
dropdown — it has to also run in place of template declaration and vice
versa. There's only a handful of components that use Default strategy in
Taiga UI
—
Reply to this email directly, view it on GitHub
<#9246 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA54ZF4X7OJWZ352743HKR3ZZE7NXAVCNFSM6AAAAABO7LLORSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZZG43DONQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
To change CSS you can use
tuiDropdownAppearance="my-dropdown"
or provide it as DI options and then style it in global/unencapsulated styles: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