-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Text] Add textDecoration style attributes #845
Conversation
Thanks for the pull request! Would be nice to follow the CSS naming convention for this And, if you can provide a jsfiddle that shows that the code works on a span on the web that would be awesome! |
@vjeux I changed the property name to follow the text-decoration-style, such as "solid", "double", "dashed", "dotted". And, text-decoration-style is only support on firefox. So the jsfiddle web demo is not really needed. |
We're trying to use web naming whenever possible, even if it's not implemented everywhere. This way we can redirect users to mdn documentation, and don't have to bikeshed on naming. |
That's awesome! |
@vjeux I rewrite the code and change the pull request title and content. Now it follows the CSS naming convention and using method is same with CSS. And here is working on web demo: https://jsfiddle.net/kjlmfe/a1zvL6s8/1/ (Only for firefox) |
cool |
1 similar comment
cool |
awesome ! DiaoZhaTian |
66666! |
看到,吊炸天。。。 |
Looks great! Can you rebase, squash your commits, and re-record the TextExample snapshot test? Set reRecord yes here and run with cmd+U: Also, assigning over to @a2 who is our Text master. |
well done~ |
@sahrens I had merge branch 'facebook/react-native/master' into my master and resolve the conflicts. |
@KJlmfe - instead of merging could you do a |
@KJlmfe - I'm confused about what's going on here, I will close this but will happily re-open if you rebase and squash into one commit! Thanks 😄 |
@brentvatne I had rebased and squashed into one commit! See it KJlmfe@fdaca5d |
Can we reopen this? Would be sweet to get underlining in :D |
did this ever get merged? |
I threw up a fresher version of this over at #1869 that was rebased, hopefully once the Travis CI build is green we can merge! |
Summary: This is simply a rebased and squashed version of @KJlmfe's PR over at facebook#845 It was actually already squashed into one commit, but for some reason that was hard to see from the original PR. Closes facebook#1869 Github Author: KJlmfe <[email protected]>
Woohoo! this made it into the underline all the things |
👍 |
Does it work for you, @pcottle? I don't seem to be seeing any text decoration. |
It's working in the UIExplorer. |
Ah, it seems that my project has reverted to 0.7.1 somewhere along the line. Apologies. I'll go try again. |
That fixed it, thanks @ide. Sorry for the newbie error. |
Summary: This is simply a rebased and squashed version of @KJlmfe's PR over at facebook#845 It was actually already squashed into one commit, but for some reason that was hard to see from the original PR. Closes facebook#1869 Github Author: KJlmfe <[email protected]>
Does it support Android in 0.19.0? |
Hello, what's the current status of this? I need |
* Initial conversion to issue forms * Updates to issue forms * Issue form must have non-empty title * Replace bug report markdown
I add
textDecorationLine
,textDecorationStyle
,textDecorationColor
style property for Text module.And it follows the CSS naming convention and using method is same with CSS.
textDecorationLine
refers to: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-linetextDecorationStyle
refers to: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-styletextDecorationColor
refers to: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-colorHere is a simple demo: