Can You Change Buttons color onfocused like yout do in TextField In Nativescript/Angular.. It works in TextField but not in BUTTON Does someone knows some other solution, im trying to build a tvapp i need to change the color when is focused in Button or Label
HTML File
<Page loaded="onPageLoaded($event)">
<StackLayout>
<Button text="My Button 2" class="my_button_2" > </Button>
<TextField class="input-field"> </TextField>
</StackLayout>
</Page>
CSS File
.my_button_2:focus{
background:olive;
border-color: red;
border: 2;
border-width: 2;
}
.my_button_2:active{
background:olive;
border-color: red;
border: 2;
border-width: 2;
}
.input-field:focus {
border-bottom-color: red;
Here is the solution in Android onloaded event
HTML
Component.ts File
CSS
Disbaling in it