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

fix(KNO-7737): Long items in combobox and menu options do not overflow #396

Conversation

MikeCarbone
Copy link
Contributor

@MikeCarbone MikeCarbone commented Feb 10, 2025

fix(KNO-7737): Long items in combobox and menu options do not overflow

Linear Issue

This PR fixes the combobox value and the option in the menu from overflowing its container:

Screenshot 2025-02-10 at 10 22 42 AM

Handling menu items too

This PR also applies the fix to menu item options. It was discovered that long items of text will overflow its container in the menu.

Before:

Screenshot 2025-02-10 at 10 14 48 AM

After:

Screenshot 2025-02-07 at 4 54 42 PM Screenshot 2025-02-10 at 10 16 07 AM

@MikeCarbone MikeCarbone requested a review from kylemcd as a code owner February 10, 2025 15:32
Copy link

linear bot commented Feb 10, 2025

Copy link

vercel bot commented Feb 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
telegraph-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 8:41pm

@knock-eng-bot
Copy link
Contributor

knock-eng-bot commented Feb 10, 2025

Package size differences

No package size differences greater than 20 KB 🚀

All package size differences
  • @telegraph/appearance: 0.00 KB
  • @telegraph/button: 0.00 KB
  • @telegraph/combobox: +0.37 KB
  • @telegraph/compose-refs: 0.00 KB
  • @telegraph/helpers: 0.00 KB
  • @telegraph/icon: 0.00 KB
  • @telegraph/input: 0.00 KB
  • @telegraph/kbd: 0.00 KB
  • @telegraph/layout: 0.00 KB
  • @telegraph/menu: +0.71 KB
  • @telegraph/modal: 0.00 KB
  • @telegraph/motion: 0.00 KB
  • @telegraph/nextjs: 0.00 KB
  • @telegraph/popover: 0.00 KB
  • @telegraph/postcss-config: 0.00 KB
  • @telegraph/prettier-config: 0.00 KB
  • @telegraph/radio: 0.00 KB
  • @telegraph/segmented-control: 0.00 KB
  • @telegraph/select: 0.00 KB
  • @telegraph/style-engine: 0.00 KB
  • @telegraph/tag: 0.00 KB
  • @telegraph/tailwind-config: 0.00 KB
  • @telegraph/textarea: 0.00 KB
  • @telegraph/tokens: 0.00 KB
  • @telegraph/tooltip: 0.00 KB
  • @telegraph/typography: +0.64 KB
  • @telegraph/vite-config: 0.00 KB

Copy link

changeset-bot bot commented Feb 10, 2025

🦋 Changeset detected

Latest commit: 5d43270

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@telegraph/combobox Patch
@telegraph/menu Patch
@telegraph/typography Patch
@telegraph/select Patch
@telegraph/button Patch
@telegraph/icon Patch
@telegraph/input Patch
@telegraph/kbd Patch
@telegraph/tag Patch
@telegraph/textarea Patch
@telegraph/tooltip Patch
@telegraph/modal Patch
@telegraph/radio Patch
@telegraph/segmented-control Patch

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

Copy link
Contributor

@mattmikolay mattmikolay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I have one piece of feedback based on how styling works in Telegraph.

packages/combobox/src/Combobox/Combobox.tsx Show resolved Hide resolved
packages/combobox/src/Combobox/Combobox.tsx Outdated Show resolved Hide resolved
Copy link
Member

@kylemcd kylemcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Amazing job!

@MikeCarbone MikeCarbone merged commit eff031c into main Feb 10, 2025
11 checks passed
@MikeCarbone MikeCarbone deleted the mike-kno-7737-telegraph-value-of-single-option-combobox-does-not-ellipsize branch February 10, 2025 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants