Replies: 1 comment
-
You can customize the modal elements after an overlay opens: up.on('up:layer:opened', function({ layer }) {
layer.dismissElement.innerHTML = '<svg>...</svg>'
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The docs mention these two options for customizing the icon:
The issue I'm having, is that I'd like to put the x icon inside a circle, and it's pretty much impossible to center it correctly. Is there any way to use an SVG icon instead? I've tried replacing the × with the svg copy but that doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions