Skip to content

Commit 853a7ef

Browse files
authored
Updates button copy and layout tweaks (#1941)
1 parent 0726620 commit 853a7ef

File tree

1 file changed

+10
-9
lines changed
  • apps/webapp/app/routes/account.tokens

1 file changed

+10
-9
lines changed

apps/webapp/app/routes/account.tokens/route.tsx

+10-9
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function Page() {
147147
</LinkButton>
148148
<Dialog>
149149
<DialogTrigger asChild>
150-
<Button variant="primary/small">Create new token</Button>
150+
<Button variant="primary/small">Create new token</Button>
151151
</DialogTrigger>
152152
<DialogContent className="max-w-md">
153153
<DialogHeader>Create a Personal Access Token</DialogHeader>
@@ -231,8 +231,8 @@ function CreatePersonalAccessToken() {
231231
return (
232232
<div className="max-w-full overflow-x-hidden">
233233
{token ? (
234-
<div className="flex flex-col gap-2 p-2">
235-
<Header2>Successfully generated a new token</Header2>
234+
<div className="flex flex-col gap-2 pt-3">
235+
<Label>Successfully generated a new token</Label>
236236
<Callout variant="success">
237237
Copy this access token and store it in a secure place - you will not be able to see it
238238
again.
@@ -241,18 +241,19 @@ function CreatePersonalAccessToken() {
241241
secure
242242
value={token.token}
243243
variant={"secondary/medium"}
244-
icon={<ShieldExclamationIcon className="h-5 w-5 text-emerald-500" />}
244+
icon={<ShieldExclamationIcon className="size-5 text-success" />}
245+
className="mt-3"
245246
/>
246247
</div>
247248
) : (
248249
<fetcher.Form method="post" {...form.props}>
249250
<input type="hidden" name="action" value="create" />
250-
<Fieldset>
251+
<Fieldset className="mt-3">
251252
<InputGroup>
252253
<Label htmlFor={tokenName.id}>Name</Label>
253254
<Input
254255
{...conform.input(tokenName, { type: "text" })}
255-
placeholder="The name of your Personal Access Token"
256+
placeholder="Name your Personal Access Token"
256257
defaultValue=""
257258
icon={ShieldCheckIcon}
258259
autoComplete="off"
@@ -268,12 +269,12 @@ function CreatePersonalAccessToken() {
268269
<FormButtons
269270
confirmButton={
270271
<Button type="submit" variant={"primary/small"}>
271-
Update
272+
Create token
272273
</Button>
273274
}
274275
cancelButton={
275276
<DialogClose asChild>
276-
<Button variant={"tertiary/medium"}>Cancel</Button>
277+
<Button variant={"tertiary/small"}>Cancel</Button>
277278
</DialogClose>
278279
}
279280
/>
@@ -309,7 +310,7 @@ function RevokePersonalAccessToken({ token }: { token: ObfuscatedPersonalAccessT
309310
<DialogContent className="max-w-md">
310311
<DialogHeader>Revoke Personal Access Token</DialogHeader>
311312
<div className="flex flex-col gap-3 pt-3">
312-
<Paragraph spacing>
313+
<Paragraph className="mb-1">
313314
Are you sure you want to revoke "{token.name}"? This can't be reversed.
314315
</Paragraph>
315316
<FormButtons

0 commit comments

Comments
 (0)