[Feature Request]: Add autoAlign
to Button
#17168
Labels
component: button
package: @carbon/react
@carbon/react
proposal: accepted
This request has gone through triaging and we are accepting PR's against it.
severity: 3
https://ibm.biz/carbon-severity
type: bug 🐛
type: enhancement 💡
type: infrastructure 🤖
Issues relating to devops, tech debt, etc.
Milestone
The problem
In a recent update, autoAlign was added to tooltips, which allows them to take advantage of floating-ui and always render the tooltip on top. This prevents it from being cut off by surrounding elements, and was a great improvement.
However, most of our tooltips are baked into Buttons and Icon Buttons, and this issue is still persistent for them. There is no way to use autoAlign and prevent tooltips inside of Buttons from being cut off.
The solution
We should align the behavior of the Tooltip component and the baked in tooltip component within buttons and icon buttons.
Examples
Here is a stack blitz demonstrating the issue and current workaround
https://stackblitz.com/edit/vitejs-vite-nwjb3v?file=src%2FApp.tsx
Application/PAL
No response
Business priority
Medium Priority = upcoming release but is not pressing
Available extra resources
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: