-
Notifications
You must be signed in to change notification settings - Fork 64
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
template causes issues when wrapping the component. #57
Comments
jackmatt2
changed the title
template causes bootstrap css to get confused
template causes issues when wrapping the component.
Oct 19, 2015
Seems like a reasonable request, would be happy to review a PR. I would suggest though holding off until GlimmerComponent lands. |
OK, I will look into it. |
@jasonmit do you know that the alternative to |
I had this exact problem with bootstrap and I solved it by doing this:
.bs-datetimepicker {
display: table;
} Hope that helps! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem with templates on any basic control is that it renders an unnecessary
div
tag which screws up other components that wrap the control and also css. In my case, I use a component ember-aupac-control which allows me to add errors, icons etc.The tempalte:
Even if you yield the input control only
The results is still
If the control used
tagName="input"
, this would eliminate the issue and as a bonus allow the user to style the tag usingclass="form-control something-else"
. This would makedateIcon
redundant but then the user can always wrap it themselves. I see that the styling of the control with an icon, error states, messages etc. can be pushed to a separate wrapper component anyway (bootstrap-wrapper) which can be used to style all sorts of controls not just the datepicker.If you were to use tagName:
would result in:
The text was updated successfully, but these errors were encountered: