+
Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Conversation

ynotdraw
Copy link
Collaborator

🚀 Description

Add overflow handling and text truncation to Button

📋 Checklist

  • I have followed the Contributing Guidelines.
  • I have added tests to cover new or updated functionality.
  • I have added or updated Storybook stories.
  • I have localized new strings.
  • I have followed the ARIA Authoring Practices Guide or met with the Accessibility Team.
  • I have included a changeset.
  • I have scheduled a design review.
  • I have reviewed the Storybook and Visual Test Report links below.

🔬 Testing

N/A

@ynotdraw ynotdraw self-assigned this Aug 13, 2025
Copy link

changeset-bot bot commented Aug 13, 2025

🦋 Changeset detected

Latest commit: 8e275ee

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

This PR includes changesets to release 1 package
Name Type
@crowdstrike/glide-core 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

@ynotdraw ynotdraw force-pushed the button-truncating-fix branch 2 times, most recently from 0871574 to 1286ae8 Compare August 14, 2025 17:12
.label {
min-inline-size: 3ch;
overflow: hidden;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You'll notice some changes in the visual test report. I tracked it down to this line. For some reason, adding overflow: hidden causes a slight visual shift in CI, but not in a real browser. 🤔

Font smoothing/antialiasing thing in Linux maybe? That's about all I can think of.

}
.label {
min-inline-size: 3ch;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Happy to pull this out if we don't think it should be there for Button.

@ynotdraw ynotdraw marked this pull request as ready for review August 14, 2025 18:15
'@crowdstrike/glide-core': patch
---

Button now shows an ellipsis when truncated.
Copy link
Collaborator

@clintcs clintcs Aug 14, 2025

Choose a reason for hiding this comment

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

Does it though? Or does getting an ellipsis to show also require styles from consumers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Doh, my apologies. Forgot to update this. Coming right up!

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would have forgotten too 😆

@ynotdraw ynotdraw force-pushed the button-truncating-fix branch from 1286ae8 to 8e275ee Compare August 14, 2025 18:26
@ynotdraw ynotdraw added this pull request to the merge queue Aug 14, 2025
Merged via the queue into main with commit a1c1ff2 Aug 14, 2025
32 checks passed
@ynotdraw ynotdraw deleted the button-truncating-fix branch August 14, 2025 19:11
@github-actions github-actions bot mentioned this pull request Aug 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载