ui-material-components icon indicating copy to clipboard operation
ui-material-components copied to clipboard

Bottom Navigation background color not applying properly

Open edusperoni opened this issue 1 year ago • 1 comments

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:

  1. the background color on the TabStrip itself isn't set (only barTintColor). (src/bottom-navigation/index.ios.ts, adding this.viewController.tabBar.backgroundColor = value instanceof Color ? value.ios : value; seems to add the color correctly)
  2. 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 avatar May 27 '24 05:05 edusperoni

@edusperoni thanks for the report should be fixed in latest

farfromrefug avatar May 27 '24 09:05 farfromrefug