Skip to content

bug: Popover arrow is rendered under the backdrop #28985

Closed

Description

@sean-perkins

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

This issue only seems to reproduce on Mac

As seen in the Side and Alignment Demo, when the popover is presented in iOS the arrow is lighter than the popover container as a result of rendering under the backdrop.

CleanShot 2023-06-02 at 12 16 36

Additionally, while hard to visibly see based on the background color, the arrow is not tight to the container and is ~1px offset from where it should render.

Expected Behavior

  1. The popover arrow should have the same visible background state as the popover container. With brief exploration, the z-index of .popover-arrow should be 11 or greater.
  2. The popover arrow should be tight to the container, as seen in the Human Interface Guidelines. With brief exploration, the fractional units used for the top value are causing the arrow to render incorrectly. Flooring the value results in the correct display.

Here is a modified example of the expected visual state:
CleanShot 2023-06-02 at 12 22 25

Steps to Reproduce

  1. Visit the Side and Alignment Demo
  2. With iOS active, Click "Side=Top, Alignment=Center" button
  3. Observe: The arrow for the presented popover is not the same background color as the popover container.
  4. Observe: The arrow is offset from the container.

Code Reproduction URL

No response

Ionic Info

N/A

Additional Information

Tested on Google Chrome: Version 113.0.5672.126 (Official Build) (arm64)

This issue is not captured in our visual regression tests: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/popover/test/arrow/popover.e2e.ts-snapshots/popover-arrow-ios-ltr-Mobile-Chrome-linux.png

Activity

  1. thetaPC commented on Jun 2, 2023

    @thetaPC
    Contributor

    Thank you for the issue! I was able to replicate it using Firefox, Chrome, and Safari with a Mac.

  2. Sahil-B07 commented on Oct 28, 2023

    @Sahil-B07
    Contributor

    Hi, I would like to work on this issue 🙂

  3. thetaPC commented on Feb 5, 2024

    @thetaPC
    Contributor

    Update: I have verified that this issue is not being replicated within Ionic Framework. It's only happening within the Ionic docs site.

  4. thetaPC commented on Feb 6, 2024

    @thetaPC
    Contributor

    After discussing with the team, the issue indeed lies within the Ionic Framework.

  5. added
    type: bug
    on Feb 6, 2024
  6. added a commit that references this issue on Feb 7, 2024
    946b488
  7. added a commit that references this issue on Feb 7, 2024
    0a8964d
  8. thetaPC commented on Feb 7, 2024

    @thetaPC
    Contributor

    Thanks for the issue! This has been resolved via #28986 and will be available in an upcoming release of Ionic.

  9. ionitron-bot commented on Mar 8, 2024

    @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.

  10. locked and limited conversation to collaborators on Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: 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