Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PopoverEducational: fix zIndex bug + add example #3486

Merged
merged 4 commits into from
Mar 22, 2024

Conversation

AlbertCarreras
Copy link
Contributor

@AlbertCarreras AlbertCarreras commented Mar 20, 2024

PopoverEducational: fix zIndex bug + add example

Zindex was not properly working. Zindex was not being applied to absolute positioned Contents component. Removed unnecessary Box.

BEFORE
Brave Browser - PopoverEducational - Gestalt 2024-03-19 at 11 13 18 PM

AFTER
Brave Browser - PopoverEducational - Gestalt 2024-03-19 at 11 14 24 PM

@AlbertCarreras AlbertCarreras requested a review from a team as a code owner March 20, 2024 03:04
@@ -170,35 +170,34 @@ export default function PopoverEducational({

if (!isInExperiment)
return (
<Box zIndex={zIndex} position={zIndex ? 'relative' : undefined}>
Copy link
Contributor Author

@AlbertCarreras AlbertCarreras Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving zIndex from this Box to Contents component with position absolute.

<Box zIndex={zIndex} position={zIndex ? 'relative' : undefined}>

@AlbertCarreras AlbertCarreras added the patch release Patch release label Mar 20, 2024
@AlbertCarreras AlbertCarreras changed the title PopoverEducational: fix zIndex logic + add example PopoverEducational: fix zIndex bug + add example Mar 20, 2024
Copy link

netlify bot commented Mar 20, 2024

Deploy Preview for gestalt ready!

Name Link
🔨 Latest commit 10ed290
🔍 Latest deploy log https://app.netlify.com/sites/gestalt/deploys/65fcbaef7d1b930008338b84
😎 Deploy Preview https://deploy-preview-3486--gestalt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@AlbertCarreras AlbertCarreras merged commit 241938f into pinterest:master Mar 22, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch release Patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants