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

Possible to style highlighted element? #39

Closed
jimmiejackson414 opened this issue Jul 15, 2022 · 7 comments
Closed

Possible to style highlighted element? #39

jimmiejackson414 opened this issue Jul 15, 2022 · 7 comments
Labels
enhancement New feature or request released

Comments

@jimmiejackson414
Copy link

Is your feature request related to a problem? Please describe.
I've been unable to figure out a way to style the highlighted element from either the docs or looking through the rendered DOM.

Describe the solution you'd like
The ability to style the highlighted element (I'm looking to add simple things such as padding and rounded corners).

Describe alternatives you've considered
I've looked through the docs as well as what is being rendered in the DOM.

Additional context
Screen Shot 2022-07-15 at 3 21 39 PM

@jimmiejackson414 jimmiejackson414 added the enhancement New feature or request label Jul 15, 2022
@fatihsolhan
Copy link
Owner

Hi, @jimmiejackson414 thank you for your interest in v-onboarding ❤️

We have an attachTo.classList option in steps, you could add some classes to style highlighted element.
See: https://v-onboarding-docs.fatihsolhan.com/props/steps

Please let me know if it helps

@jimmiejackson414
Copy link
Author

I'd noticed that and tried styling it with that route, but adding things like padding messed with the layout quite a bit. I think I was mostly unsure of whether it was creating a new DOM element over the top of the element itself, and whether I could style that new DOM element but it doesn't sound like that's the case. I'll give this another shot, thanks!

@fatihsolhan
Copy link
Owner

fatihsolhan commented Jul 17, 2022

Hey @jimmiejackson414, you meant adding padding and border radius to the corners of the overlay element as in SS below?
If so, it is just an SVG actually. If you want, I could try to add options for rounding corners and adding padding etc
image

This is the SVG overlay implementation: https://github.com/fatihsolhan/v-onboarding/blob/main/src/composables/useSvgOverlay.ts#L14

@jimmiejackson414
Copy link
Author

@fatihsolhan yes that's correct, that would be incredible!

@github-actions
Copy link

🎉 This issue has been resolved in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@fatihsolhan
Copy link
Owner

Hey @jimmiejackson414

You can now add padding and border-radius to overlay element.
See overlay option: https://v-onboarding-docs.fatihsolhan.com/props/options

@jimmiejackson414
Copy link
Author

Works beautifully, thanks a ton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

2 participants