Skip to content

ref(core): button busy state and form SubmitButton UX#109934

Merged
TkDodo merged 6 commits intomasterfrom
tkdodo/feat/de-980-submitbuttom-ux
Mar 6, 2026
Merged

ref(core): button busy state and form SubmitButton UX#109934
TkDodo merged 6 commits intomasterfrom
tkdodo/feat/de-980-submitbuttom-ux

Conversation

@TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Mar 5, 2026

second attempt of #109869, which was reverted by #109891

@linear-code
Copy link

linear-code bot commented Mar 5, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 5, 2026
Comment on lines +261 to +263
${StyledTag} {
border-radius: ${p => p.theme.radius.full};
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

note: we only want to change the border-radius when the StyledTag is used as the button trigger, as it’s also used as dropdown elements, where we want the normal radius:

Screenshot 2026-03-05 at 11 01 00

const StyledButton = styled(Button)`
width: 100%;
> span {
> span > span {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

note: this component is only used in the old issues detail UI, which is no longer shown at all:

export function useHasStreamlinedUI() {
// The old UI should never be shown to the user.
// TODO: Remove all usages of this hook, along with the legacy UI components.
return true;
}

so it’s pretty much irrelevant, but technically correct.

Comment on lines +138 to +144
const StyledAssigneeBadge = styled(AssigneeBadge)`
border-radius: ${p => p.theme.radius.full};
`;

const StyledTrigger = styled(OverlayTrigger.Button)`
font-weight: ${p => p.theme.font.weight.sans.regular};
border: none;
padding: 0;
height: unset;
border-radius: 20px;
box-shadow: none;

> span > div {
border-radius: 20px;
}
border-radius: ${p => p.theme.radius.full};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

a lot of the stylings were unnecessary. I’m now changing the radius on the AssigneeBadge directly, which means I had to add className props to it to forward it correctly.

Comment on lines -250 to -262
const DropdownButton = styled(Button)`
font-weight: ${p => p.theme.font.weight.sans.regular};
border: none;
padding: 0;
height: unset;
border-radius: 20px;
box-shadow: none;

> span > div {
border-radius: 20px;
}
`;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed all styles that didn’t yield any changes. I guess there are overrides that are leftovers from UI1

@TkDodo TkDodo marked this pull request as ready for review March 5, 2026 10:41
@TkDodo TkDodo requested a review from a team as a code owner March 5, 2026 10:41
Copy link
Member

@JonasBa JonasBa left a comment

Choose a reason for hiding this comment

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

Nice style cleanup and good use of the primitives!

@TkDodo TkDodo merged commit 978468b into master Mar 6, 2026
61 checks passed
@TkDodo TkDodo deleted the tkdodo/feat/de-980-submitbuttom-ux branch March 6, 2026 09:33
@JonasBa JonasBa added the Trigger: Revert Add to a merged PR to revert it (skips CI) label Mar 6, 2026
@getsentry-bot
Copy link
Contributor

PR reverted: 72228d7

getsentry-bot added a commit that referenced this pull request Mar 6, 2026
This reverts commit 978468b.

Co-authored-by: JonasBa <9317857+JonasBa@users.noreply.github.com>
JonasBa added a commit that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: Revert Add to a merged PR to revert it (skips CI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants