-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
RadDatForm styling is not working #260
Comments
Here are the steps to reproduce.
Then, in app.module.ts, added:
Then, in home.module.ts, added:
home.component.ts :
home.component.html :
|
I haven't tested on iOS so far, I did and it works. |
Looks like just setting As for the text field text styling - this is a bug/design decision in {N} - CSS styling has more priority than the properties of the control, so it won't be applied. You can override it with CSS with higher specificity. Something along those lines: .ns-root PropertyEditor[type='Text'] DataFormEditorLabel {
font-size: 18;
font-style: italic;
color: #00695c;
position: top;
}
.ns-root PropertyEditor[type='Text'] DataFormEditorCore {
border-color: #00695c;
border-width: 2;
background-color: #4db6ac;
} |
For just Android, like this: .ns-android PropertyEditor[type='Text'] DataFormEditorLabel {
font-size: 18;
font-style: italic;
color: #00695c;
position: top;
} |
All my RadDataForms started to look like this suddenly. Is this the same problem? https://github.com/NativeScript/NativeScript/issues/8607#issue-629523503 Is there a way to remove those styles being applied? |
Yes, looks like it. |
@bundyo is there a way to disable all this styling? I want my fields to have the default look on iOS. I've been looking everywhere with no hope, if I create a new project and add RadDataForm it doesn't look like the image shown at all. (My github issue ref) |
You can try if compat mode helps, but I guess not completely. Maybe I can separate the {N}-UI components styling in a separate file that can be optionally not loaded. What do you think? |
For me it is caused by the specifically this style:
But I'm not able to fix it... if I set any background* style to |
In my project, I use themes:
@import "~@nativescript/theme/core";
In one of my components, I use RadDataForm.
For picker input, the arrow is hidden.
I cannot apply TKPropertyEditorStyle, it is ignored completely.
If I import compat (@import "~@nativescript/theme/core.compat";), it works.
So there is an incompatibility with new themes and Rad component.
How can I fix it without using old compat (that makes my app ugly)?
Thanks.
The text was updated successfully, but these errors were encountered: