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

New: Added support for new Vanilla button color mixins (fixes #32) #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kirsty-hames
Copy link
Contributor

Fixes #32

New

  • Added support for new Vanilla button color mixins PR. Default button style set to filled to mimic current Vanilla and outline as optional style. The implementation allows for additional styles to be created for custom themes.
  • Focus state added.
  • Legacy support added to prevent breaking change.
  • Button selector classes extended to prevent Vanilla styles overwriting (generic .btn-text and .btn-icon styles in Vanilla button.less). Same issue applies to Hint master, this wasn't introduced during this PR.

Testing legacy support

  1. Install Vanilla master.
  2. There should be no change in styling. Legacy styles apply.

Testing new Vanilla buttons

  1. Install Vanilla PR.
  2. Hint button style can be changed via the @item-ui-color-style variable in less/_defaults/_btn-style.less. Test both filled and outline styles.
  3. Check all states styles apply (default, hover and focus).

- generic .btn-text and .btn-icon styles in Vanilla button.less
- same issue applies to Hint master. Plugin styles are being overwritten by Vanilla.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync with Adapt Buttons update
1 participant