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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react): Add class names to buttons #2220

Merged
merged 2 commits into from Feb 23, 2022
Merged

Conversation

asastre
Copy link
Contributor

@asastre asastre commented Feb 22, 2022

Description

Add class names to buttons depending on their type.

Context

It can be useful sometimes to apply different styles depending on the button's destination (payload, url...) but without having fixed classes this is not possible.

Approach taken / Explain the design

Add a fixed class name to custom buttons and to normal buttons depending on the active attribute they have as a destination.

To document / Usage example

Classes created:

  • button-custom
  • button-payload
  • button-url
  • button-path
  • button-webview

Testing

The pull request has no tests.

@asastre asastre merged commit cc928cf into master-lts Feb 23, 2022
@asastre asastre deleted the react/button-classes branch February 23, 2022 08:50
vanbasten17 pushed a commit that referenced this pull request Mar 23, 2023
* feat(react): add specific class names in buttons depending of its type (custom, payload, url, webview or path)

* fix(core): fix import error with pako package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants