-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
FormattedString inside Button has wrong background color after animation #4938
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
Comments
Hi @doumr, For further info, please keep track on the issue. |
Any solution or workaround for this ? |
Hi @RadouaneRoufid, |
@RadouaneRoufid Actually, I have found a workaround with the tns-core-modules@3.4.0 and tns-android@3.4.1. When you set the background-color property of the Therefore I guess this issue can be closed as there is a workaround for this. Do you agree @tsonevn ? |
Hi @doumr, |
I also want to use this workaround, but I don't want to define the css in the xml with the style-property. I tried to write |
This same bug exists on iOS |
One possible workaround for all buttons in SCSS can be this: Button {
> *,
> * > * {
background-color: transparent;
}
} FormattedString and Span element selectors do not work, but child selectors still do. @felix-idf Probably didn't work as the background is set on the Span, not the FormattedString. Setting a class on the Span and using it for the background-color works. Nevertheless, it would be great if this is fixed. |
Closed by #10701 |
Uh oh!
There was an error while loading. Please reload this page.
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes, I did not found any.
Tell us about the problem
When using

Button
withFormattedString
inside it and the background color of theButton
is changed via animation, the background color of theFormattedString
is not changed.Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
This problem was not occuring with the cross-platform modules 3.0.0 and android runtime 3.1.1.
Please tell us how to recreate the issue in as much detail as possible.
Reproduced behavior in playground: https://play.nativescript.org/?id=8cArU2Fb8w0jPjDWXtvV0
tns create MyApp --ng
Button
withFormattedString
in itFormattedString
is not changedIs there code involved? If so, please share the minimal amount of code needed to recreate the problem.
view:
css:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: