-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Control Slot Styling #35
Comments
@antonreshetov if I manually add the
Is there a better way to add classes to help with customizing the slider controls? |
you can use attribute selector in css div[data-glide-el="controls"] {
...
} |
I've tried the solution @matejtaborsky has suggested to no avail. Has @mpukit, @matejtaborsky or @antonreshetov been able to style the controls as a whole yet? As you can see in the following screenshots, the styling is not rendered in the browser. I write the styles: div[data-glide-el='controls'] {
border: 2px solid blue !important;
} I see the correct data attribute in the dev tools But then there is no styling is applied to the button container |
I ran into this, and realised that it's easier to ignore the controls slot entirely, and do it manually instead. e.g.
|
Since VueGlide is only a wrapper, it respects the behavior of the library itself. Control via arrows should be consistent with the documentation https://glidejs.com/docs/data-attributes. But I will think about how to simplify the styling through the slot |
Is there a way to add a class to the controls slot (or even a div inside around the buttons) to help with styling and positioning the Slider Controls?
Default control slot:
Rendered in the browser:
How can I do this?
The text was updated successfully, but these errors were encountered: