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

Handle static class name bindings #69

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

jrjohnson
Copy link
Contributor

When combining static and dynamic classes it's possible to use :static
to insert an always truthy class name that doesn't depend on any
property. This is now handled correctly in the template output.

When combining static and dynamic classes it's possible to use :static
to insert an always truthy class name that doesn't depend on any
property. This is now handled correctly in the template output.
Copy link
Contributor

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL 😅

not sure anyone should be using this, but I guess it doesn't hurt to support this :)

thanks!

@Turbo87 Turbo87 added the enhancement New feature or request label Mar 12, 2020
@Turbo87 Turbo87 merged commit 18ac349 into ember-codemods:master Mar 12, 2020
@jrjohnson
Copy link
Contributor Author

Yea, it's not documented anywhere so I have no idea where we got the idea from, but we have a bunch of them. I think it was maybe necessary in the 1.x erra when classNames and classNameBindings couldn't be used together 🤷‍♂

@jrjohnson jrjohnson deleted the static-classnamebinding branch March 12, 2020 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants