-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
When I styled background on SearchBar to avoid default grey background fill, it started rendering two thin lines above and under. Setting background-color triggers the issue. I am seeing this issue across all devices in the emulator.
main-page.xml
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page">
<Page.actionBar>
<ActionBar title="My App" icon="" class="action-bar">
</ActionBar>
</Page.actionBar>
<StackLayout id="searchArea" class="p-20">
<Label text="Hello!" textWrap="true" />
<SearchBar id="searchBar" hint="Search" text="" />
</StackLayout>
</Page>
main-page.ts
import { EventData } from 'data/observable';
import { Page } from 'ui/page';
export function navigatingTo(args: EventData) {
}
app.css
#searchArea {
color: white;
background-color: #0e88a0;
}
#searchBar {
background-color: #0e88a0;
}
@import 'nativescript-theme-core/css/core.light.css';
$ tns --version
3.0.3
$ cat package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.SearchBarStylingBug",
"tns-ios": {
"version": "3.0.1"
}
},
"dependencies": {
"nativescript-theme-core": "~1.0.2",
"tns-core-modules": "~3.0.0"
},
"devDependencies": {
"nativescript-dev-android-snapshot": "^0.*.*",
"nativescript-dev-typescript": "~0.4.0",
"typescript": "~2.2.1"
}
}