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

Lines display incorrectly with hyphenated words #54

Open
kjbrum opened this issue Jan 29, 2020 · 5 comments
Open

Lines display incorrectly with hyphenated words #54

kjbrum opened this issue Jan 29, 2020 · 5 comments
Assignees

Comments

@kjbrum
Copy link

kjbrum commented Jan 29, 2020

Hyphenated words get treated as a single word (which makes sense), but this can cause the second part of the word to break to a new line and causes issues when animating.

Example of the behavior can be seen here: https://codepen.io/kjbrum/pen/jOEoNMx

@notoriousb1t
Copy link
Collaborator

We could consider treating hyphenated words as separate words. There is some nuance here though. I am not sure if the hyphen should be considered a separate word or if the hyphen should end up on the first word. WDYT @shshaw ?

@kjbrum
Copy link
Author

kjbrum commented Mar 16, 2020

That's a good point. I ended up replacing each hyphen with <span class="hyphen">-</span>.

@Gbillington1
Copy link

@kjbrum How did you do this? Looking for a solution :)

@kjbrum
Copy link
Author

kjbrum commented Apr 1, 2020

@Gbillington1 You can find an iteration of my final solution here. I believe I had to make some adjustments after I implemented it into my project, but it should help a bit.

https://codepen.io/kjbrum/pen/rNagKgX

@Gbillington1
Copy link

Thanks! @kjbrum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants