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

fix(tooltip): correct scroll width caused by #7309 #7414

Merged
merged 3 commits into from
Dec 10, 2020

Conversation

lee-chase
Copy link
Member

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.

@lee-chase lee-chase requested a review from a team as a code owner December 8, 2020 12:56
@netlify
Copy link

netlify bot commented Dec 8, 2020

Deploy preview for carbon-elements ready!

Built with commit 6257c41

https://deploy-preview-7414--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Dec 8, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 6257c41

https://deploy-preview-7414--carbon-components-react.netlify.app

@netlify
Copy link

netlify bot commented Dec 8, 2020

✔️ 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

@netlify
Copy link

netlify bot commented Dec 8, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 8c10b93

https://deploy-preview-7414--carbon-components-react.netlify.app

@lee-chase lee-chase changed the title fix: correct scroll width caused by #7309 fix(tooltip): correct scroll width caused by #7309 Dec 9, 2020
Copy link
Contributor

@dakahn dakahn left a comment

Choose a reason for hiding this comment

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

Seems great!

@tw15egan tw15egan requested review from a team and jeanservaas and removed request for a team December 10, 2020 14:37
Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM 👍 ✅

@kodiakhq kodiakhq bot merged commit f905c27 into carbon-design-system:master Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants