-
Notifications
You must be signed in to change notification settings - Fork 71
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
Too aggressive text-align-last #14
Comments
PR #15 is meant to fix this. I'm not sure why |
Thanks for your pull request. The text-align reset is due to the way the inline-block fallback works with use of text-align. If you have a right aligned grid, you probably don't want the grid contents to inherit this, hence I reset everything to left/start.
Also I don't think https://developer.mozilla.org/en/docs/Web/CSS/text-align I'll take a proper look in the near future. |
Ok, I see.
That's correct, sorry. It was supposed to be |
Thanks for explaining this sounds pretty good to me. I'll take a proper look and test it out in the future. |
@leejordan 👍 On smoothing the assumptions around text aligning. |
I've addressed this issue in a recent commit 758c9b4 showing fix based on your demo: http://plnkr.co/edit/TYwQkEi22YaGzkSsI6gF?p=preview I've opted to use the "initial" property because it fixes the issue you demonstrated in your demo. It makes the text alignment reset much less aggressive and allows you to more easily have differently aligned elements within the grid. It also plays nicely with the fallback inline-block grid. Thanks very much for taking the time to produce a demo of the problem. Let me know if you have any further issues. I'll be creating release 1.0.8 shortly which will contain this fix among others and I will update the npm version at the same time. |
@kmkr @leejordan Thanks a lot! 🍡 |
This issue is still present in the newest release. |
Text-align-last value "left | start" assumes that children aligns everything to the left.
Example: http://plnkr.co/edit/n1za5W?p=preview
The text was updated successfully, but these errors were encountered: