-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix(Popover): adjust popover content placement #10539
fix(Popover): adjust popover content placement #10539
Conversation
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: 9ffc2f0 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/620d3eec0a182c00085cef00 😎 Browse the preview: https://deploy-preview-10539--carbon-react-next.netlify.app |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 9ffc2f0 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/620d3eec85a0da0007d9a0ac 😎 Browse the preview: https://deploy-preview-10539--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 9ffc2f0 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/620d3eec081fc200079eb5c9 😎 Browse the preview: https://deploy-preview-10539--carbon-components-react.netlify.app |
@laurenmrice @dakahn this might be coming up due to some of the changes we made to the placement logic and I wanted to see what you all felt like was the right set of trade-offs. When looking at the popover, we have two pieces: the caret and the overall box When we are placing these two pieces, everything is relative to the trigger. As a result, we can only place these items in the center of the trigger, or left/right-aligned Unfortunately, we can't really control how much distance there is between the edge of the content and the position of the caret. If we want to control the distance between the edge of the content and the position of the caret, then unfortunately we lose the ability to center the caret relative to the trigger 😞 This is a trade-off and I'm curious what you all think / which one we want to pick. I'll also share this with the team to see if they have any other thoughts on how to tackle this! |
Notes from our meeting today: It seems like we need to:
|
@dakahn Is this ready for review? I wasn't sure based on the comments above 🙂 |
…arbon into 10286-fix-popover-caret-styling
@abbeyhrt should be good for a review now 👍🏾 |
For some reason the build/preview keeps failing, once it's fixed I can review 🙂. |
@laurenmrice should be good to go at this link. If that's still weird shift-click the reload button -- might be a caching problem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@laurenmrice ACK! Great catch. Totally missed that. On it 👍🏾 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now D.A.! Thank you! ✅
Closes #10286
Minor adjustment to the placement of the popover content which should line up the caret (pointy thing) with the end of the text padding
![145869848-c89e4798-d3df-4036-9701-8021dbfa6f85](https://user-images.githubusercontent.com/40970507/151289853-b39849c4-b40d-4dcd-9c9f-54ce1f21049c.png)
Changelog
Testing / Reviewing
make sure whats compiled and on netlify matches the above screen shot 👍🏾