The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 23:00 UTC
refactor(web): use ghost-muted where ghost buttons restyled to muted (#13020)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Julius Marminge committed
Sep 22, 2026 at 12:22 UTC
c0490e9d0eb057218bfa5df3f25a7c26c37145a5
12 files changed
+22
-33
apps/web/src/components/DiffFilePathCopyButton.tsx
+1
-2
@@ -24,8 +24,7 @@ export function DiffFilePathCopyButton({ filePath }: { filePath: string }) {
24
<Button
25
ref={ref}
26
size="icon-micro"
27
- variant="ghost"
28
- className="text-muted-foreground [:hover,[data-pressed]]:bg-transparent"
27
+ variant="ghost-muted"
28
aria-label="Copy file path"
29
onClick={() => copyToClipboard(filePath, undefined)}
30
/>
apps/web/src/components/RightPanelTabs.tsx
+2
-2
@@ -1260,9 +1260,9 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
1260
render={
1261
<Button
1262
aria-label="Add panel surface"
1263
- className="size-6 shrink-0 text-muted-foreground hover:text-foreground"
1263
+ className="size-6 shrink-0"
1264
size="icon-xs"
1265
- variant="ghost"
1265
+ variant="ghost-muted"
1266
/>
1267
}
1268
>
apps/web/src/components/chat/ProviderStatusBanner.tsx
+2
-2
@@ -117,10 +117,10 @@ export const ProviderStatusBanner = memo(function ProviderStatusBanner({
117
</div>
118
<Button
119
aria-label={`Dismiss ${providerName} provider ${status.status}`}
120
- className="absolute top-2 right-2 size-6 text-muted-foreground hover:text-foreground"
120
+ className="absolute top-2 right-2 size-6"
121
onClick={onDismiss}
122
size="icon-xs"
123
- variant="ghost"
123
+ variant="ghost-muted"
124
>
125
<XIcon aria-hidden className="size-3.5" />
126
</Button>
apps/web/src/components/diffs/DiffCommentAnnotation.tsx
+3
-8
@@ -68,8 +68,8 @@ export function DiffCommentAnnotation({
68
<p className="min-w-0 flex-1 whitespace-pre-wrap text-[13px] leading-5">{displayedText}</p>
69
{onDelete ? (
70
<Button
71
- className="-my-1 -mr-1 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover/comment:opacity-100 focus-visible:opacity-100 max-sm:opacity-100"
72
- variant="ghost"
71
+ className="-my-1 -mr-1 shrink-0 opacity-0 transition-opacity group-hover/comment:opacity-100 focus-visible:opacity-100 max-sm:opacity-100"
72
+ variant="ghost-muted"
73
size="icon-xs"
74
aria-label="Delete comment"
75
onClick={onDelete}
@@ -115,12 +115,7 @@ export function DiffCommentAnnotation({
115
/>
116
<div className="mt-1.5 flex items-center gap-1">
117
<span className="mr-auto text-[10px] text-muted-foreground/70">⌘/Ctrl Enter to send</span>
118
- <Button
119
- className="text-muted-foreground hover:text-foreground"
120
- variant="ghost"
121
- size="xs"
122
- onClick={onCancel}
123
- >
118
+ <Button variant="ghost-muted" size="xs" onClick={onCancel}>
119
Cancel
120
</Button>
121
{secondaryAction ? (
apps/web/src/components/pullRequest/PullRequestCommentBody.tsx
+2
-2
@@ -44,8 +44,8 @@ export function PullRequestCommentBody({
44
{overflowing ? (
45
<Button
46
size="xs"
47
- variant="ghost"
48
- className="mt-2 text-muted-foreground"
47
+ variant="ghost-muted"
48
+ className="mt-2"
49
aria-expanded={expanded}
50
aria-controls={id}
51
onClick={() => {
apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx
+2
-2
@@ -166,8 +166,8 @@ function OpenOnHostButton({ url, onOpen }: { url: string | null; onOpen: (url: s
166
return url === null ? null : (
167
<Button
168
size="icon-xs"
169
- variant="ghost"
170
- className="-mr-1 -mt-1 shrink-0 text-muted-foreground"
169
+ variant="ghost-muted"
170
+ className="-mr-1 -mt-1 shrink-0"
171
aria-label="Open activity on host"
172
onClick={() => onOpen(url)}
173
>
apps/web/src/components/settings/AddProviderInstanceDialog.tsx
+1
-2
@@ -369,8 +369,7 @@ export function AddProviderInstanceDialog({
369
<Button
370
type="button"
371
size="xs"
372
- variant="ghost"
373
- className="text-muted-foreground"
372
+ variant="ghost-muted"
373
onClick={() => setAccentColor("")}
374
>
375
Clear
apps/web/src/components/settings/ConnectionsSettings.tsx
+2
-4
@@ -1626,9 +1626,8 @@ function SavedBackendListRow({
1626
render={
1627
<Button
1628
type="button"
1629
- variant="ghost"
1629
+ variant="ghost-muted"
1630
size="icon-xs"
1631
- className="text-muted-foreground hover:text-foreground"
1631
disabled={isRemoving}
1632
aria-label={`More actions for ${environment.label}`}
1633
/>
@@ -3292,9 +3291,8 @@ export function ConnectionsSettings() {
3291
render={
3292
<Button
3293
type="button"
3295
- variant="ghost"
3294
+ variant="ghost-muted"
3295
size="icon-xs"
3297
- className="text-muted-foreground hover:text-foreground"
3296
aria-label="More actions for this machine"
3297
/>
3298
}
apps/web/src/components/settings/KeybindingsSettings.tsx
+2
-4
@@ -952,9 +952,8 @@ function KeybindingRowMenu({
952
render={
953
<Button
954
type="button"
955
- variant="ghost"
955
+ variant="ghost-muted"
956
size="icon-sm"
957
- className="text-muted-foreground hover:text-foreground"
957
disabled={isSaving}
958
aria-label={`Actions for ${commandLabel(row.command)}`}
959
/>
@@ -1232,9 +1231,8 @@ function NewKeybindingCancelIcon({
1231
render={
1232
<Button
1233
type="button"
1235
- variant="ghost"
1234
+ variant="ghost-muted"
1235
size="icon-sm"
1237
- className="text-muted-foreground hover:text-foreground"
1236
disabled={isSaving}
1237
aria-label="Cancel new keybinding"
1238
onClick={onCancel}
apps/web/src/components/settings/ProjectActionsList.tsx
+2
-2
@@ -53,8 +53,8 @@ export function ProjectActionsList({
53
) : null}
54
<Button
55
size="icon-xs"
56
- variant="ghost"
57
- className="shrink-0 text-muted-foreground opacity-0 group-focus-within:opacity-100 group-hover:opacity-100"
56
+ variant="ghost-muted"
57
+ className="shrink-0 opacity-0 group-focus-within:opacity-100 group-hover:opacity-100"
58
aria-label={`Edit ${script.name}`}
59
disabled={disabled}
60
onClick={() => onEdit(script)}
apps/web/src/components/settings/ProviderInstanceCard.tsx
+2
-2
@@ -767,8 +767,8 @@ export function ProviderInstanceCard({
767
<Button
768
type="button"
769
size="icon-xs"
770
- variant="ghost"
771
- className="shrink-0 text-muted-foreground hover:text-foreground"
770
+ variant="ghost-muted"
771
+ className="shrink-0"
772
onClick={() =>
773
copyToClipboard(updateCommand, { providerName: displayName })
774
}
scripts/lint-restyle-ceiling.ts
+1
-1
@@ -8,7 +8,7 @@ import * as NodeURL from "node:url";
8
// components/ui exports are migrated to variants (see vite.config.ts). This gate keeps the
9
// count from growing: CI fails when findings exceed the ceiling. Lower the ceiling when you
10
// migrate a file, and delete this script when the rule becomes an error.
11
-export const RESTYLE_CEILING = 1207;
11
+export const RESTYLE_CEILING = 1184;
12
13
const RULE = "shadcn(no-restyle)";
14