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

Customize SVG buttons #35

Closed
PaulM75 opened this issue Aug 18, 2015 · 8 comments
Closed

Customize SVG buttons #35

PaulM75 opened this issue Aug 18, 2015 · 8 comments

Comments

@PaulM75
Copy link

PaulM75 commented Aug 18, 2015

Hi, how can i customize buttons/arrows? Ths

@feimosi
Copy link
Owner

feimosi commented Aug 19, 2015

It's impossible with CSS as they're hardcoded as SVG in the .js file. You can always change the color by modifying that file, but it's just a workaround. Implementing buttons customization would be too complicated.

@PaulM75 PaulM75 closed this as completed Aug 20, 2015
@mattweb
Copy link

mattweb commented Dec 17, 2018

Hey Marek,

I'm also interested in customizing buttons. Wouldn't this be a simple solution?
https://flickity.metafizzy.co/options.html#arrowshape

Thanks for your good work!
Matt

Edit: Sorry, didn't see the Pull Request #204

@feimosi
Copy link
Owner

feimosi commented Dec 18, 2018

Hey Matthias, feel free to use that branch. It's not ready yet as I need to clean up the code. I also haven't tested it.

@terryupton
Copy link

Any update on being able to customise SVG buttons?

@Mushr0000m
Copy link

Yes it would be nice to be able with CSS to at least change the color of the stroke.

@joshangehr
Copy link

@Mushr0000m You can change the stroke colour with this CSS:

polyline, line {
    stroke: red;
}

As for the custom SVG icons, I see that the previous pull request looks to been abandoned. @feimosi I can whip up a new one if you're still taking contributions? I've done it with very minimal changes (essentially just passing the userOptions to the buildOverlay() function so that we can access custom values, and then updating the innerHTML of each icon if one exists.

@feimosi
Copy link
Owner

feimosi commented Apr 24, 2020

@joshangehr sure 👍

@crafted-at
Copy link

[...] I see that the previous pull request looks to been abandoned. @feimosi I can whip up a new one if you're still taking contributions?

@joshangehr are you still pursuing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants