Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Parameter for TinyBox close button color #953

Open
lesserj opened this issue Apr 18, 2017 · 1 comment
Open

Parameter for TinyBox close button color #953

lesserj opened this issue Apr 18, 2017 · 1 comment

Comments

@lesserj
Copy link
Member

lesserj commented Apr 18, 2017

We would like a parameter that lets us control the close button color on the Tiny modal on a plugin to plugin basis. The tiny modal appears as a direct child of the body, and not as a child of the plugin (which makes sense), but it means we can't control the style of the close button without affecting other apps that use the modal, or writing javascript to set the style and remove the style when the modal is opened or closed.

Here are two examples of the modal, one with a white background top bar, and the other a dark color top bar. Setting the color of the close button on one, changes it for the other.

image

image

After discussing with @zferdana @cschneebeck , we think the best approach would be to add a parameter to the TinyBox. Something like:

TINY.box.show({
closeButtonColor: #fff
})

Open to other suggestions as well.

@lesserj
Copy link
Member Author

lesserj commented Apr 18, 2017

@iKimbot

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

No branches or pull requests

1 participant