Skip to content

Conversation

@kirsty-hames
Copy link
Contributor

@kirsty-hames kirsty-hames commented Feb 11, 2025

Fixes #145

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. AFAIK, this is the first plugin to be updated to support the new Vanilla buttons. Are we happy to apply the same fallback implementation for other plugins?

Testing legacy support

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

Testing new Vanilla buttons

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

@swashbuck
Copy link
Contributor

👍 Works as expected.

Question... Should the checkmark icon take on the button styles since it's more of an information icon rather than a clickable button? Technically speaking, should the icon be changed from btn-icon to btn-ui-icon? The former uses @nav-btn-border-radius for the rounding whereas the latter uses @ui-btn-controls-border-radius.

check-icon

@kirsty-hames
Copy link
Contributor Author

kirsty-hames commented Apr 17, 2025

👍 Works as expected.

Question... Should the checkmark icon take on the button styles since it's more of an information icon rather than a clickable button? Technically speaking, should the icon be changed from btn-icon to btn-ui-icon? The former uses @nav-btn-border-radius for the rounding whereas the latter uses @ui-btn-controls-border-radius.

check-icon

Hey @swashbuck, good question. I think item-ui-color would be most suitable? This would be in keeping with Hotgraphic too. We could then update border-radius: 50%; to use @item-ui-border-radius instead?

@swashbuck
Copy link
Contributor

👍 Works as expected.
Question... Should the checkmark icon take on the button styles since it's more of an information icon rather than a clickable button? Technically speaking, should the icon be changed from btn-icon to btn-ui-icon? The former uses @nav-btn-border-radius for the rounding whereas the latter uses @ui-btn-controls-border-radius.
check-icon

Hey @swashbuck, good question. I think item-ui-color would be most suitable? This would be in keeping with Hotgraphic too. We could then update border-radius: 50%; to use @item-ui-border-radius instead?

@kirsty-hames Yep, that sounds good.

Copy link
Contributor

@guywillis guywillis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

* Chore: Add support for new issue experience (fixes #162)

* Update: Update example.json default text (fix #168)

* Chore(release): 4.7.0 [skip ci]

# [4.7.0](v4.6.5...v4.7.0) (2025-06-11)
@kirsty-hames
Copy link
Contributor Author

Hi @swashbuck, I finally got round to updating this PR as per your suggestion. Assuming I've understood correctly, I've separated the icon (plus/checkmark) from inheriting the @item-color-style and instead this uses @item-ui-color-style in be374f0. By default, these inherit the same colours from Vanilla but now they're setup so we can easily change the colours.

I also realised @item-color-focus was a new variable added during the Vanilla buttons PR so I've added a fallback variable for this too.

Copy link
Contributor

@swashbuck swashbuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kirsty-hames kirsty-hames merged commit c1a5033 into master Sep 2, 2025
@kirsty-hames kirsty-hames deleted the buttons-145 branch September 2, 2025 15:00
github-actions bot pushed a commit that referenced this pull request Sep 2, 2025
# [4.8.0](v4.7.0...v4.8.0) (2025-09-02)

### New

* Added support for new Vanilla button color mixins (fixes #145) (#164) ([c1a5033](c1a5033)), closes [#145](#145) [#164](#164) [#170](#170)
@github-actions
Copy link

github-actions bot commented Sep 2, 2025

🎉 This PR is included in version 4.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

4 participants