You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] add outline to label and button text #3597
Currently there is no way to add outline for texts in nativescript.
but we need that in cases the color of Label ( or Button with transparent background) and parent are same so if we don't add an outline to text of button and label the element will be invisible.
I found that for android this can be done using shadaw for Label and stroke for button.
It would be really good if we had CSS property to set outline of text.
This issue could be related to #550, where has been logged a feature request for implementing shadow CSS property for the components. Could you verify the attached issue and to vote for it if this is your case?
@tsonevn - box-shadow and text-shadow are different things. Also, what's being requested here is an outline feature. Think "Stroke" in Photoshop compared to "Outer shadow" or "Outer glow". So it's not the same request as #550.
Hi @Cayan,
This feature is still under review and I could not commit to the exact time when this functionality will be included in NativeScript.
Regarding that, any PR will be highly appreciated and if all the test pass, it will be included in the modules. For further info review this article.
Activity
NordlingDev commentedon Feb 10, 2017
I actually tried to do this yesterday with native code but couldn't solve it. However, in iOS you can at least create a shadow effect using this:
This won't create a perfect outline though because you cannot control the intensity. What I tried to do after some googling was this:
But it doesn't work. It should, but nothing happens.
tsonevn commentedon Feb 14, 2017
Hi @kazemihabib,
This issue could be related to #550, where has been logged a feature request for implementing shadow CSS property for the components. Could you verify the attached issue and to vote for it if this is your case?
Regards,
@tsonevn
kazemihabib commentedon Feb 14, 2017
Hi, @tsonevn
that issue is about box-shadaw but my requested feature is text-shadaw.
this page shows the difference http://www.w3schools.com/css/css3_shadows.asp .
NordlingDev commentedon Feb 14, 2017
@tsonevn - box-shadow and text-shadow are different things. Also, what's being requested here is an outline feature. Think "Stroke" in Photoshop compared to "Outer shadow" or "Outer glow". So it's not the same request as #550.
Cayan commentedon Jun 21, 2017
Any update on this?
tsonevn commentedon Jun 21, 2017
Hi @Cayan,
This feature is still under review and I could not commit to the exact time when this functionality will be included in NativeScript.
Regarding that, any PR will be highly appreciated and if all the test pass, it will be included in the modules. For further info review this article.
34r7h commentedon Nov 27, 2017
+1 text-shadow / stroke feature
bzaruk commentedon Jan 17, 2018
+1 text-shadow
elalienx commentedon May 28, 2018
Yes, please add the text-shadow property.
gabrielsmelo commentedon Apr 2, 2019
Please, add text-shadow property!! <3
tanekim88 commentedon Apr 9, 2019
I need text-shadow property so bad
frabanca commentedon Apr 15, 2019
+1!!!
Omi231 commentedon May 17, 2019
+1
Omi231 commentedon May 17, 2019
I can't believe a modern framework doesn't have this feature. Its one of the very basic things in terms of UI.
Macarthurval commentedon Jan 30, 2020
I've found a way to stroke easily a label text:
NathanWalker commentedon May 12, 2023
The stated spec https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke will be supported in next minor release.
feat(css): text-stroke support
feat(css): text-stroke support (#10399)
feat(css): text-stroke support (NativeScript#10399)