Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Contextual button colors #123

Closed
fynnfeldpausch opened this issue Jan 20, 2021 · 2 comments
Closed

[FEATURE] Contextual button colors #123

fynnfeldpausch opened this issue Jan 20, 2021 · 2 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@fynnfeldpausch
Copy link
Contributor

馃殌 Feature request

Is your feature request related to a problem?

We are in need of contextual buttons that indicate success or danger.

Describe the solution you'd like

Buttons appearance mode should also support "Success" and "Error" and use the colors already defined in the current colors set.

Additional context

success
error

@fynnfeldpausch fynnfeldpausch changed the title [FEATURE] [FEATURE] Contextual button colors Jan 20, 2021
@waterplea
Copy link
Collaborator

This can be achieved by custom buttons. Check out the last example:
https://taiga-ui.dev/tui-button#custom

Buttons, like many other components, use tui-wrapper component under the hood. It is responsible for displaying interactive state for different Appearances. You can extend it by adding your custom appearances and defining them in global styles, as shown in example.

I will cover that in Customization guide I plan to add this week.

@fynnfeldpausch
Copy link
Contributor Author

Perfect, this solves my use case.

@waterplea waterplea added the wontfix This will not be worked on label Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Development

No branches or pull requests

3 participants