diff --git a/src/renderer/src/components/right-sidebar/CommitArea.test.tsx b/src/renderer/src/components/right-sidebar/CommitArea.test.tsx
index 7d377e69391..22f4e73bc8a 100644
--- a/src/renderer/src/components/right-sidebar/CommitArea.test.tsx
+++ b/src/renderer/src/components/right-sidebar/CommitArea.test.tsx
@@ -384,8 +384,18 @@ describe('ConflictSummaryCard', () => {
expect(cherryPickMarkup).not.toContain('Abort rebase')
})
- it('renders rebase abort with the quiet outline review-conflicts button treatment', () => {
- const markup = renderToStaticMarkup(
+ it('renders abort actions with the quiet outline review-conflicts button treatment', () => {
+ const mergeMarkup = renderToStaticMarkup(
+
+ )
+ const rebaseMarkup = renderToStaticMarkup(
{
/>
)
- expect(buttonContaining(markup, 'Review conflicts')).toContain('data-variant="outline"')
- expect(buttonContaining(markup, 'Abort rebase')).toContain('data-variant="outline"')
+ expect(buttonContaining(mergeMarkup, 'Review conflicts')).toContain('data-variant="outline"')
+ expect(buttonContaining(mergeMarkup, 'Abort merge')).toContain('data-variant="outline"')
+ expect(buttonContaining(rebaseMarkup, 'Review conflicts')).toContain('data-variant="outline"')
+ expect(buttonContaining(rebaseMarkup, 'Abort rebase')).toContain('data-variant="outline"')
})
it('renders the Sparkles icon on the idle Resolve with AI button', () => {
@@ -435,7 +447,7 @@ describe('OperationBanner', () => {
expect(cherryPickMarkup).not.toContain('Abort rebase')
})
- it('keeps rebase abort non-destructive while preserving merge abort styling', () => {
+ it('renders abort actions with the quiet outline button treatment', () => {
const mergeMarkup = renderToStaticMarkup(
)
@@ -443,7 +455,7 @@ describe('OperationBanner', () => {
)
- expect(buttonContaining(mergeMarkup, 'Abort merge')).toContain('data-variant="destructive"')
+ expect(buttonContaining(mergeMarkup, 'Abort merge')).toContain('data-variant="outline"')
expect(buttonContaining(rebaseMarkup, 'Abort rebase')).toContain('data-variant="outline"')
})
})
diff --git a/src/renderer/src/components/right-sidebar/SourceControl.tsx b/src/renderer/src/components/right-sidebar/SourceControl.tsx
index 5f86a1b45a3..83be74d11ca 100644
--- a/src/renderer/src/components/right-sidebar/SourceControl.tsx
+++ b/src/renderer/src/components/right-sidebar/SourceControl.tsx
@@ -5687,14 +5687,6 @@ function DiffCommentsInlineList({
)
}
-function conflictAbortButtonVariant(
- conflictOperation: GitConflictOperation
-): 'outline' | 'destructive' {
- // Why: aborting a rebase is the escape hatch for this state, so it should
- // match the quiet outline conflict-review action instead of reading as red.
- return conflictOperation === 'rebase' ? 'outline' : 'destructive'
-}
-
export function ConflictSummaryCard({
conflictOperation,
unresolvedCount,
@@ -5770,7 +5762,9 @@ export function ConflictSummaryCard({
{(conflictOperation === 'merge' || conflictOperation === 'rebase') && onAbortOperation ? (