-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(tooltip): correct scroll width caused by #7309 #7414
Conversation
Deploy preview for carbon-elements ready! Built with commit 6257c41 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 6257c41 https://deploy-preview-7414--carbon-components-react.netlify.app |
✔️ Deploy preview for carbon-elements ready! 🔨 Explore the source changes: 8c10b93 🔍 Inspect the deploy logs: https://app.netlify.com/sites/carbon-elements/deploys/5fd259b16bd82000080986d4 😎 Browse the preview: https://deploy-preview-7414--carbon-elements.netlify.app |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 8c10b93 https://deploy-preview-7414--carbon-components-react.netlify.app |
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.
Seems great!
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.
LGTM 👍 ✅
The alignment of the tooltip created in #7309 moved the inner (content) part of the tip. This meant that the outer part caused the width of the component to include space outside the display area of the tip, even when the tip was shown with the direction of the setting: bottom align: end. This could cause a scroll bar in circumstances where the tip appeared to be displayed entirely within the available space.
In addition #7309 appeared to square off the top corners of the tip.
This PR reverts the SCSS changes in #7309 and instead styles the outer tooltip element and carrot to the correct positions.
Changelog
Changed
packages/components/src/components/tooltip/_tooltip.scss
Testing / Reviewing
Visually inspected the 8 off center cases.