Skip to content

Conversation

@TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Jul 14, 2025

This PR hoists theme.space up to the commonTheme so that we have it available without being narrowed to a chonk theme. This allows us to use it everywhere in place of the space function, which has been deprecated.

buttonBar needs to be done in a follow-up, because it needs an API change including many call-side changes.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 14, 2025
@TkDodo TkDodo marked this pull request as ready for review July 14, 2025 14:53
@TkDodo TkDodo requested a review from a team as a code owner July 14, 2025 14:53
@TkDodo TkDodo requested a review from Jesse-Box July 15, 2025 08:57
@TkDodo TkDodo merged commit 5b433a4 into master Jul 15, 2025
47 checks passed
@TkDodo TkDodo deleted the tkdodo/ref/remove-space-util-from-button branch July 15, 2025 14:37
height: auto;
min-height: auto;
padding: ${space(0.25)};
padding: ${p.theme.space['2xs']};
Copy link
Member

Choose a reason for hiding this comment

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

This is unfortunate that we'll have to be inconsistent with dotted vs bracketed attribute access

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah we talked about this too. @Jesse-Box favours xxs and xxl over 2xl and that would solve this problem too.

Copy link
Member

Choose a reason for hiding this comment

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

should be a pretty easy refactor if we decide to change the names 👍

andrewshie-sentry pushed a commit that referenced this pull request Jul 21, 2025
This PR hoists `theme.space` up to the `commonTheme` so that we have it
available without being narrowed to a `chonk` theme. This allows us to
use it everywhere in place of the `space` function, which has been
deprecated.

`buttonBar` needs to be done in a follow-up, because it needs an API
change including many call-side changes.
@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants