mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
fix: return default tab background color when the background color is not explicitely set through css (#8240)
* fix: return default tab background color when the background color is not explicitely set through css * chore: update NativeScript.api.md * fix: do not cast return getTabBarBackgroundColor to ColorDrawable * chore: added comment and method check Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com>
This commit is contained in:
@ -578,9 +578,7 @@ export class BottomNavigation extends TabNavigationBase {
|
||||
|
||||
// BACKGROUND-COLOR
|
||||
const backgroundColor = tabStripItem.style.backgroundColor;
|
||||
if (backgroundColor) {
|
||||
tabItemSpec.backgroundColor = backgroundColor.android;
|
||||
}
|
||||
tabItemSpec.backgroundColor = backgroundColor ? backgroundColor.android : this.getTabBarBackgroundArgbColor();
|
||||
|
||||
// COLOR
|
||||
const color = titleLabel.style.color;
|
||||
|
Reference in New Issue
Block a user