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

feat: Add className props to ImageWithZoom #257

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

alecdwm
Copy link
Contributor

@alecdwm alecdwm commented Mar 24, 2020

What:

The following props have been added to the ImageWithZoom component:

  • className
  • imageClassName
  • overlayClassName

Why:

Before this change, it was impossible to add classNames to the ImageWithZoom image and overlay components.
Additionally, if a className was added to the container component via filteredProps, the container lost its existing styles.

How:

The new props were added in a manner which reflects the Image component's className prop.

Checklist:

  • Documentation added/updated (N/A)
    • ImageWithZoom doesn't appear to have its own documentation separate to that of the Image component.
  • Typescript definitions updated
  • Tests added and passing (N/A)
  • Ready to be merged

* Add className prop to ImageWithZoom
* Add imageClassName prop to ImageWithZoom
* Add overlayClassName prop to ImageWithZoom
@tim-steele
Copy link
Contributor

@allcontributors please add @alecdwm for code

@allcontributors
Copy link
Contributor

@tim-steele

I've put up a pull request to add @alecdwm! 🎉

@tim-steele tim-steele merged commit 79e729f into express-labs:master Mar 26, 2020
@bcarroll22
Copy link
Contributor

🎉 This PR is included in version 1.27.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants