Skip to content

Setting translucent="true" not working for ion-tab-bar #17676

Closed

Description

@isaiahaguilera

Bug Report

Ionic version:

[x] 4.0.2

Current behavior:

Setting translucent effect doesn't work on ion-tab-bar.
Expected behavior:

"Frozen glass" effect on ion-tab-bar on iOS.

Steps to reproduce:

Setting ion-tab-bar with translucent="true" and adding content to the page to make it scrollable. Then test and see if you can see the content scrolling under the tab bar.

Related code:

<ion-tabs>

  <ion-tab-bar translucent slot="bottom" >
    <ion-tab-button tab="news">
      <ion-icon name="paper"></ion-icon>
      <ion-label>News</ion-label>
    </ion-tab-button>

    <ion-tab-button tab="tab2">
      <ion-icon name="apps"></ion-icon>
      <ion-label>Tab Two</ion-label>
    </ion-tab-button>

    <ion-tab-button tab="tab3">
      <ion-icon name="send"></ion-icon>
      <ion-label>Tab Three</ion-label>
    </ion-tab-button>
  </ion-tab-bar>

</ion-tabs>

Other information:

Ionic info:


Ionic:

   ionic (Ionic CLI)             : 4.10.3 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.2
   @angular-devkit/build-angular : 0.12.4
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.2.4
   @ionic/angular-toolkit        : 1.4.0

Capacitor:

   capacitor (Capacitor CLI) : 1.0.0-beta.17
   @capacitor/core           : 1.0.0-beta.17

System:

   NodeJS : v8.11.3 (/usr/local/Cellar/node@8/8.11.3_1/bin/node)
   npm    : 5.6.0
   OS     : macOS Mojave

Activity

  1. liamdebeasi commented on Mar 4, 2019

    @liamdebeasi
    Contributor

    Hi there,

    Thanks for the issue! Did you add fullscreen to your ion-content? If you did not, the content will not appear to scroll under headers/footers/tabbars.

    See the docs here: https://ionicframework.com/docs/api/content#properties

    Can you try this out, and let me know if you're still seeing this issue? Thanks!

  2. added
    needs: reply
    on Mar 4, 2019
  3. isaiahaguilera commented on Mar 4, 2019

    @isaiahaguilera
    Author

    Yes I did. The translucent effect seems to work on the header fine. But it doesn't on the tab bar.

    <ion-content fullscreen="true">
      <social-feed></social-feed>
    </ion-content>
    
  4. added and removed
    needs: reply
    on Mar 4, 2019
  5. liamdebeasi commented on Mar 4, 2019

    @liamdebeasi
    Contributor

    Thanks for the follow up. Which browser/version are you testing this in?

  6. added
    needs: reply
    on Mar 4, 2019
  7. isaiahaguilera commented on Mar 4, 2019

    @isaiahaguilera
    Author

    I am testing on an iPhone 6s Plus running IOS 12.1.4

  8. added and removed
    needs: reply
    on Mar 4, 2019
  9. 442623641 commented on Mar 5, 2019

    @442623641

    same issue

  10. liamdebeasi commented on Mar 5, 2019

    @liamdebeasi
    Contributor

    Hi there,

    Thanks for the additional info! I setup an example using some of the code you provided but was unable to reproduce this issue. I attached a screenshot of what I can see below. Would you be able to provide a repository with the code required to reproduce this issue? Thanks!

    simulator screen shot - iphone 6s plus - 2019-03-05 at 09 25 20

  11. 21 remaining items

  12. danielehrhardt commented on Jul 1, 2021

    @danielehrhardt
    Contributor

    Thanks for the repo! I was able to reproduce the issue you are describing. We will look into this!

    Something new here?

  13. nesha14586 commented on Dec 21, 2021

    @nesha14586

    still not working

  14. St0necrusher commented on Sep 12, 2022

    @St0necrusher

    any news? still not worked

  15. nesha14586 commented on Dec 12, 2022

    @nesha14586

    Can't believe this is still an issue, it's almost 2023. Would love for this to work properly.

    Everyone would love for it to work!

  16. JanPhill commented on Apr 28, 2023

    @JanPhill

    Any news on when this will be finally fixed? Would really love this feature!

  17. ItzNicDev commented on Sep 3, 2023

    @ItzNicDev

    By combining @TiagoDamascena's approach with some other CSS styling you get pretty close to the original blur effect

    ion-tab-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: rgba(0, 0, 0, 0.7);
    }
    

    Simply added the background-color to get more control over the blur

    Worked for me!

  18. added
    type: bug
    and removed
    type: bug
    on Sep 5, 2023
  19. liamdebeasi commented on Sep 27, 2023

    @liamdebeasi
    Contributor

    Hi everyone,

    Here is a dev build with a proposed fix if anyone is interested in testing: 7.4.2-dev.11695832397.13fa6703

    Install Example:

    npm install @ionic/[email protected]
    
  20. added a commit that references this issue on Oct 4, 2023
    b297529
  21. liamdebeasi commented on Oct 4, 2023

    @liamdebeasi
    Contributor

    Thanks for the issue. This has been resolved via #28246, and a fix will be available in an upcoming release of Ionic Framework.

  22. ionitron-bot commented on Nov 3, 2023

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  23. locked and limited conversation to collaborators on Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: coretype: bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions