Skip to content

Conversation

@charliepark
Copy link
Contributor

This simplifies the copy on modal create forms' action buttons, and restricts the types to a few select verbs.

Open to approaching this another way, but this was a quick one to throw together, so I figured I'd put the PR up.

Closes #2749

@vercel
Copy link

vercel bot commented Apr 7, 2025

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Apr 8, 2025 4:56am

@charliepark
Copy link
Contributor Author

(updating tests …)

loading={updatePolicy.isPending}
submitError={updatePolicy.error}
submitLabel="Assign role"
submitLabel="Assign"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think all of those are harder to understand without the noun.

Copy link
Collaborator

@david-crespo david-crespo Apr 8, 2025

Choose a reason for hiding this comment

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

It was my idea to shorten, lol. #2746 (comment). But that was in the context of a much longer one Attach floating IP, which I now see could be shortened to Attach IP. It was also in a PR about a non-side modal form. I think this shorter version might make more sense in the little modal forms because you can see everything right next to the button. With the side modal, I find the form a bit long and the title a bit far away to find a plain ADD intuitive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That makes sense! Will kill this PR and see about cleaning up just the button copy in free-floating modals.

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.

Refine modal success button text

3 participants