ui-material-components
ui-material-components copied to clipboard
Bottom Navigation background color not applying properly
Which platform(s) does your issue occur on?
- iOS, latest
Please, provide the following version numbers that your issue occurs with:
- CLI: 8.7.0
- Cross-platform modules: 8.7.0
- Runtime(s): 8.7.0
- Plugin(s): version on master
Please, tell us how to recreate the issue in as much detail as possible.
Setting the background color on the TabStrip does not apply on iOS.
Is there any code involved?
on the demo file demo-snippets/vue/BottomNavigation.vue, add a green background:
<MDTabStrip backgroundColor="green">
<MDTabStripItem backgroundColor="transparent">
<Label text="First" />
<Image src="font://mdi-home" class="mdi" />
</MDTabStripItem>
This is not applied.
This issue is apparently 2 issues:
- the background color on the TabStrip itself isn't set (only barTintColor). (
src/bottom-navigation/index.ios.ts, addingthis.viewController.tabBar.backgroundColor = value instanceof Color ? value.ios : value;seems to add the color correctly) - the TabStripItem has a default background so it needs to be set to a transparent background for the previous change to apply
Unsure what's the best solution for this issue (either setting the tabBar background or using the tabBar background as the default background for the items).
@edusperoni thanks for the report should be fixed in latest