Skip to content

fix: stop text from overflowing on delete org button #16549

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

Merged
merged 7 commits into from
Feb 14, 2025

Conversation

brettkolodny
Copy link
Contributor

Closes #16433

I also took the opportunity to convert the components to tailwind. Since there aren't designs for this piece of UI yet I tried to match it as closely as possible using the existing tailwind config

Screenshot 2025-02-12 at 5 03 58 PM

@brettkolodny brettkolodny changed the title Fix text overflow on delete org button fix: text overflow on delete org button Feb 12, 2025
@brettkolodny brettkolodny changed the title fix: text overflow on delete org button fix: fix text overflow on delete org button Feb 12, 2025
@brettkolodny brettkolodny changed the title fix: fix text overflow on delete org button chore: fix text overflow on delete org button Feb 12, 2025
@brettkolodny brettkolodny changed the title chore: fix text overflow on delete org button fix: stop text from overflowing on delete org button Feb 12, 2025
<HorizontalSection
title="Settings"
description="Change or delete your organization."
>
<div css={styles.dangerSettings}>
<div className="flex bg-surface-orange items-center justify-between border border-solid border-orange-600 rounded-[8px] p-3 pl-[18px] gap-2 flex-grow">
Copy link
Contributor

Choose a reason for hiding this comment

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

We should actually avoid setting explicit styles with Tailwind as much as possible.

For rounded-, there actually will be some work in the future to update these in the tailwind.config. If this is set to rounded-md it will automatically gets that update and therefore the consistency in the future.

For pl-[18px], it would be better to just choose one of the closest classes either pl-4 or pl-5

In general, we should only use the explicit styling if that was a decision made in the Figma designs or the utility class options are really too different from what looks correct.

Copy link
Contributor

@jaaydenh jaaydenh left a comment

Choose a reason for hiding this comment

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

lgtm

@brettkolodny brettkolodny merged commit 1ce4dfe into main Feb 14, 2025
30 checks passed
@brettkolodny brettkolodny deleted the brett/fix-text-overflow-on-delete-button branch February 14, 2025 16:13
@github-actions github-actions bot locked and limited conversation to collaborators Feb 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.

text overflow on org deletion button
2 participants