Skip to content

bug: chromium issue with translucent popover #22176

Closed

Description

@TylerAHolden

Bug Report

Ionic version:

[ ] 4.x
[x] 5.x

Current behavior:

Popover with the translucent property does not work. You can see behind the popover is not blurred as expected.
Screen Shot 2020-09-25 at 10 24 09 AM

Expected behavior:

When the translucent property is set to true, the popover backdrop filter works.

Steps to reproduce:

Open popover in menu. See my example deployment here: https://elegant-hugle-0f5e0e.netlify.app

Related code:
See code here: https://github.com/TylerAHolden/popover-issue-bug-ionic

Other information:

It seems that the parent container "popover-wrapper ion-overlay-wrapper sc-ion-popover-ios" is the reason backdrop filter is not applied. Since the parent is 0x0 pixels set in the middle of the screen, I think that's why backdrop-filter isn't blurring any background.

Ionic info:

Ionic:

   Ionic CLI       : 6.6.0 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/react 5.3.4

Capacitor:

   Capacitor CLI   : 2.4.2
   @capacitor/core : 2.4.2

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v12.16.2 (/usr/local/bin/node)
   npm    : 6.14.4
   OS     : macOS Catalina

Activity

  1. brandyscarney commented on Oct 7, 2020

    @brandyscarney
    Member

    Thanks for the issue! Which browser are you seeing this in? I'm able to reproduce this in Chrome only, but in Safari I see it working fine. Here's an example Codepen: https://codepen.io/brandyscarney/pen/OJXJQNp. Are you seeing the same?

  2. TylerAHolden commented on Oct 7, 2020

    @TylerAHolden
    Author

    Yep you're right, safari works fine. I'm using chrome which is where it's not working.

  3. brandyscarney commented on Oct 7, 2020

    @brandyscarney
    Member

    Thanks for the quick reply! I don't think this has ever worked, because Chrome didn't have support for blur when we first implemented it (looks like that was 3 years ago). I'll add this as a bug, but this may be an issue with Chrome's implementation.

  4. added
    package: core
    type: bug
    on Oct 7, 2020
  5. changed the title [-]bug: React Popover w/ Translucent does not work[/-] [+]bug: Popover w/ Translucent does not work in Chrome[/+] on Oct 7, 2020
  6. danielehrhardt commented on Nov 13, 2020

    @danielehrhardt
    Contributor

    Same Problem here

  7. danielehrhardt commented on Nov 13, 2020

    @danielehrhardt
    Contributor
        "@ionic/angular": "5.4.1",
        "@ionic/angular": "5.4.4",
    

    After I updated to this Version

  8. liamdebeasi commented on Nov 13, 2020

    @liamdebeasi
    Contributor

    Backdrop filter seems to still work in Chrome, so it looks like something on our end broke: https://codepen.io/liamdebeasi/pen/xxOMwYW Alternatively, it could be that under certain circumstances, Chrome's implementation is now breaking.

  9. liamdebeasi commented on Nov 13, 2020

    @liamdebeasi
    Contributor

    Backdrop filter seems to still work in Chrome, so it looks like something on our end broke: https://codepen.io/liamdebeasi/pen/xxOMwYW Alternatively, it could be that under certain circumstances, Chrome's implementation is now breaking.

    It was the latter. For some reason the arrow and other styles are animating the wrapper is breaking Chrome's backdrop blur implementation.

  10. danielehrhardt commented on Nov 13, 2020

    @danielehrhardt
    Contributor

    @liamdebeasi i also asked my self how this could happen :D
    Could you post a Link to the Code Position to take care for other Stuff.

  11. liamdebeasi commented on Nov 13, 2020

    @liamdebeasi
    Contributor

    The issue here is that Chromium has trouble rendering the backdrop filter on an element when animating its parent element. If we were to animate in the content and arrow instead of the wrapper, the problem would go away.

    Here is a dev build if anyone would like to try out a potential fix:

    Angular

    npm install @ionic/[email protected]
    

    React

    npm install @ionic/[email protected] @ionic/[email protected]
    

    Vue

    npm install @ionic/[email protected] @ionic/[email protected]
    

    Vaniall JS

    npm install @ionic/[email protected]
    
  12. changed the title [-]bug: Popover w/ Translucent does not work in Chrome[/-] [+]bug: chromium issue with translucent popover[/+] on Nov 13, 2020
  13. danielehrhardt commented on Nov 13, 2020

    @danielehrhardt
    Contributor

    I tested your Repo. It does work 😍👌.

    Does it make sense to create an Issue at the Chromium Project?

  14. liamdebeasi commented on Nov 13, 2020

    @liamdebeasi
    Contributor
  15. added
    bug: external
    and removed
    package: core
    on Aug 20, 2021
  16. added
    package: core
    type: bug
    and removed
    type: bug
    bug: external
    on Apr 21, 2023
  17. added a commit that references this issue on May 18, 2023
    a59eefb
  18. added a commit that references this issue on May 22, 2023
    2319a18
  19. ionitron-bot commented on Jun 17, 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.

  20. locked and limited conversation to collaborators on Jun 17, 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