-
Notifications
You must be signed in to change notification settings - Fork 150
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(BaseMenuItem): truncate text without spaces and add htmlTitle #2299
Conversation
🦋 Changeset detectedLatest commit: df35413 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ PR title follows Conventional Commits specification. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit df35413:
|
Bundle Size ReportUpdated Components
|
packages/blade/src/utils/useTruncationTooltip/useTruncationTooltip.web.tsx
Outdated
Show resolved
Hide resolved
const containerRef = React.useRef<HTMLDivElement>(null); | ||
const textRef = React.useRef<HTMLParagraphElement>(null); | ||
|
||
React.useEffect(() => { |
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.
Should we use layoutEffect?
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.
doesn't have to be render-blocking so should be fine for now. Can change this if its causing bugs
Description
Fixes #2275
Preview: https://61c19ee8d3d282003ac1d81c-hzfyfxtdyq.chromatic.com/?path=/story/components-dropdown-actionlist-stories--action-list-with-custom-items
Changes
Additional Information
Component Checklist