Tearsheet: redesign when it checks for definition overflow #6939
Labels
component: Tearsheet
role: dev
Sev 3
Visible or noticeable to users but does not impede functionality. Has a workaround.
type: bug 🐛
Something isn't working
Package
Carbon for IBM Products
Description
@devadula-nandan added code in #6686 (for #4230) to display a tooltip when the tearsheet description overflows. I'm seeing some issues:
What I would suggest is to replace the current code of:
with:
Note that normally useState() and useEffect() can be replaced by a single useMemo(), but in this case I want to wait for the TearsheetShell to (re)render before measuring.
Component(s) impacted
Tearsheet, maybe TearsheetNarrow too.
Browser
Chrome
@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version
2.59.0
Suggested Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Product/offering
IKC
CodeSandbox or Stackblitz example
https://ibm-products.carbondesignsystem.com/?path=/story/ibm-products-components-tearsheet--tearsheet&globals=viewport:basic
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: