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

refactor(tooltip): avoid magic number positioning #2749

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented May 16, 2019

Closes #2748

This PR avoids relying on magic numbers to position icon tooltips. Similar logic can be applied for left/right positioning tooltips in #2731

Changelog

New

  • tooltip caret spacing token

Changed

  • tooltip transform/translate rules

Removed

  • custom positioning in button.scss

Testing / Reviewing

Ensure that tooltips render as expected

@emyarod emyarod force-pushed the 2748-universal-tooltip-positioning branch from 66e9bb8 to 9ac2e89 Compare May 16, 2019 14:34
@netlify
Copy link

netlify bot commented May 16, 2019

Deploy preview for the-carbon-components ready!

Built with commit 66e9bb8

https://deploy-preview-2749--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented May 16, 2019

Deploy preview for carbon-components-react ready!

Built with commit 66e9bb8

https://deploy-preview-2749--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented May 16, 2019

Deploy preview for the-carbon-components ready!

Built with commit 9ac2e89

https://deploy-preview-2749--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented May 16, 2019

Deploy preview for carbon-components-react ready!

Built with commit 9ac2e89

https://deploy-preview-2749--carbon-components-react.netlify.com

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.

[Tooltip] More universal tooltip positioning rules
1 participant