-
Notifications
You must be signed in to change notification settings - Fork 356
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
Add CTA functionality to button #381
base: main
Are you sure you want to change the base?
Conversation
- Adjusting visibility of style fields when CTA is selected
I think previous iterations of the boilerplate were kept pretty simple and didn't include any hover styles for buttons. I definitely agree that we should have some hover options - do we think it makes sense to also add some in theme settings so there is parity with this module update? I think current theme settings also lacks hover controls. Happy to help if it makes sense to put up a PR separate from this one for that task. |
I would think that, yes, we should update to include hover in both places if we are going to include it here. I guess you bring up the larger question -- are we then saying that including hover state controls for marketers is best practice? Because that is what Boilerplate is supposed to be guiding. I can definitely see both sides to the argument where hover state controls might be considered a choice the developer makes based on their needs -- and maybe not necessarily always the best practice. |
Yeah the best practice thing is a good point. I was mainly thinking specifically about button but looking at hover states as an overall pattern, it might make sense to update other areas that could reasonably use hover states like links in theme settings. @TheWebTech @ajlaporte do either of you happen to have a good pulse on if adding hover options is a common practice among developers/is this something we could potentially survey in the developer Slack? |
We can poll folks. Overall i think its going to be a complete mixed bag. Themes built and designed specifically for a company's site likely dont offer hover styling controls. Marketplace providers however likely do offer hover styling controls. Whether its theme wide or they offer granular control at the module level too. I'm not sure. Likely also mixed. |
Launched a poll: https://hubspotdev.slack.com/archives/CSFGKSHT7/p1631625417041300 |
Types of change
Description
This PR adds CTA functionality to the button module in the theme by:
Also adds further checks for telephone numbers, relative links, etc. for the href value.This wasn't necessary based on recent updated to the validation in the UI:hover
and:active
declarations to the scoped CSS of the moduleRelevant links
DM Previewer
Checklist