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
Looks like just setting background-color or border to the text fields will reset all borders and the dropdown caret. Unfortunately removing those styles will break the dark mode styling, as the border and the dropdown caret remain black. So this looks more like a styling bug in RadDataForm.
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:
@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)
Activity
jmdavid commentedon Apr 10, 2020
Here are the steps to reproduce.
Then, in app.module.ts, added:
Then, in home.module.ts, added:
home.component.ts :
home.component.html :
jmdavid commentedon Apr 22, 2020
I haven't tested on iOS so far, I did and it works.
So the bug is only in Android.
bundyo commentedon May 27, 2020
Looks like just setting
background-colororborderto the text fields will reset all borders and the dropdown caret. Unfortunately removing those styles will break the dark mode styling, as the border and the dropdown caret remain black. So this looks more like a styling bug in RadDataForm.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:
bundyo commentedon May 27, 2020
For just Android, like this:
houssammehdi commentedon Jun 4, 2020
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?
bundyo commentedon Jun 4, 2020
Yes, looks like it.
houssammehdi commentedon Jun 6, 2020
@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)
bundyo commentedon Jul 3, 2020
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?
gustavotrott commentedon Apr 3, 2023
For me it is caused by the
@import '@nativescript/theme/css/core.css';.specifically this style:
But I'm not able to fix it... if I set any background* style to
DataFormEditorCore, it stops showing the caret.