fix(git): label branch rename buttons (#1239)

Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
Isaac Sanchez-Hawkins
2026-05-12 11:03:26 +03:00
committed by GitHub
co-authored by Isaac Sanchez
parent ebf87f64dc
commit 7506b736dd
8 changed files with 25 additions and 0 deletions
@@ -99,6 +99,8 @@ export const WorktreeBranchDisplay: React.FC<WorktreeBranchDisplayProps> = ({
<button
type="submit"
disabled={isRenaming}
aria-label={isRenaming ? t('gitView.branch.renameSaving') : t('gitView.branch.renameSave')}
title={isRenaming ? t('gitView.branch.renameSaving') : t('gitView.branch.renameSave')}
className="shrink-0 text-muted-foreground hover:text-foreground disabled:opacity-50"
>
{isRenaming ? (
@@ -111,6 +113,8 @@ export const WorktreeBranchDisplay: React.FC<WorktreeBranchDisplayProps> = ({
type="button"
onClick={handleCancelEdit}
disabled={isRenaming}
aria-label={t('gitView.branch.renameCancel')}
title={t('gitView.branch.renameCancel')}
className="shrink-0 text-muted-foreground hover:text-foreground disabled:opacity-50"
>
<RiCloseLine className="size-4" />