-
Notifications
You must be signed in to change notification settings - Fork 77
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: allow adding classes to both modal body (removing extraneous div) and backdrop #845
Conversation
Deploy preview for fundamental-react ready! Built with commit 6259515 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me ⛵️
src/Modal/Modal.js
Outdated
); | ||
|
||
const modalClasses = classnames( | ||
'modal-demo-bg', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this class was here before, but should it be? This seems like something used as a selector for unit tests and there is an entry in customstyles.css
from fundamental-styles
. It's fine to use some custom styles for a playground or such, but it shouldn't be part of the base component's classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I'll remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@greg-a-smith turns out that entire div was just for the styles docs site. I'm removing it here and going to make a pr there to make that more obvious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 🚢
@jbadan Although this is a feature, should the prefix be |
I did |
@jbadan Yeah, fair enough. I forgot about that. 👍 |
Description
Copy of #824, removing commit
01a4c6c
that causes publishing issues.fixes #800