-
Notifications
You must be signed in to change notification settings - Fork 160
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
feat(autoalign): @floating-ui/dom implementation #11549
feat(autoalign): @floating-ui/dom implementation #11549
Conversation
Deploy preview created for package Built with commit: 56557a708ca924b19513fc3c00e176d14b3d14d9 |
Deploy preview created for package Built with commit: 56557a708ca924b19513fc3c00e176d14b3d14d9 |
Deploy preview created for package Built with commit: 56557a708ca924b19513fc3c00e176d14b3d14d9 |
Deploy preview created for package Built with commit: 56557a708ca924b19513fc3c00e176d14b3d14d9 |
packages/carbon-web-components/src/components/toggle-tip/toggletip.scss
Outdated
Show resolved
Hide resolved
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! just wonder if we should update all the examples the slug examples to use autoalign
too or the readme's assuming people copy and paste that. Also need to redirect to the release branch
@ariellalgilmore I did consider changing all the slug examples to use the |
85db5f4
into
carbon-design-system:release/v2.4.0
…m#11549) * feat(popover): bring floating-ui in popover * feat(toggletip): toggletip with floating-ui * chore(toggletip): update toggletip story and add CSB * feat(tooltip): autoalign functionality with tooltip * feat(autoalign): slug styles * docs(autoalign): update storybook docs * docs(codesandbox): add CSB for autoalign * chore(docs): adjust spacing * feat(slug): optimize slug styles * feat(toggletip): adjust styles * feat(slug): separate the styles out * feat(slug): add after psuedo elem back * feat(slug): break out from parent selector * feat(slug): separate from parent selector * feat(slug): slug caret styles --------- Co-authored-by: Carbon for IBM.com Bot <[email protected]>
Related Ticket(s)
Closes #11506
Description
This PR adds the
@floating-ui/dom
library to address the clipping issue seen with adopters when placing thepopover
/tooltip
/toogletip
/slug
in a parent container withoverflow:hidden
set.The changes will be made under the
autoalign
property so the original components are not affected.AFTER:
![Screenshot 2024-02-17 at 3 13 24 PM](https://private-user-images.githubusercontent.com/54281166/305966584-92d62497-e53b-4aef-9a89-f9d7d0b2bd7a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDk5OTQsIm5iZiI6MTczODkwOTY5NCwicGF0aCI6Ii81NDI4MTE2Ni8zMDU5NjY1ODQtOTJkNjI0OTctZTUzYi00YWVmLTlhODktZjlkN2QwYjJiZDdhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MjgxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzOTc2N2FmYjBmZDdlZTRmMTEzMzQ4NzUwZjk5NjM0MmViYmQ3ZWYzMWEyN2Y1ODM3M2M1YTMxZTkzNjdkN2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8AovuOnFH26_Xg2R-7Ylwb5JFtN0G6eTcOCo0s4k0ck)
Changelog
New
@floating-ui/dom
added to dependenciesfloating-ui
global internal utiltoggletip
floating-ui
internal global utility to handle the positioning inpopover
andtoggletip
autoalign
featureChanged
toggletip
story docs updatedpopover
,toggletip
,tooltip
,icon-button
,slug
have theautoalign
property added