-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: dynamic classes only now functional #4780
fix: dynamic classes only now functional #4780
Conversation
Deploy preview for the-carbon-components ready! Built with commit d2f8d43 https://deploy-preview-4780--the-carbon-components.netlify.com |
Deploy preview for carbon-elements ready! Built with commit d2f8d43 |
Deploy preview for carbon-components-react ready! Built with commit d2f8d43 https://deploy-preview-4780--carbon-components-react.netlify.com |
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.
LGTM 👍 - Thanks @lee-chase!
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
@@ -55,6 +55,7 @@ export default { | |||
}; | |||
} | |||
if (data.class) { | |||
svgData.class = svgData.class || {}; // may be no static class |
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.
just wondering could the default value for svgData.class
be an empty object as well? on L48:
const svgData = {
attrs,
on: listeners,
class: {},
};
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 don't think it will do any harm, I was just trying to make the minimal impact change.
Closes #4779
Add the ability to use dynamic classes only in @carbon/icons-vue
Changelog
m packages/icons-vue/tasks/tests/createIconComponent-test.js
m packages/icons-vue/tasks/createIconComponent.js
Testing / Reviewing
Without this I am unable to progress the use of carbon prefix for classes in some @carbon/vue components.