|
37 | 37 | {:else} |
38 | 38 | <span class="flex max-w-full flex-wrap items-center gap-0.5 overflow-hidden break-all"> |
39 | 39 | {value.fromFile} |
40 | | - <span class="iconify inline-block text-primary octicon--arrow-right-16"></span> |
| 40 | + <span class="iconify inline-block text-primary octicon--arrow-right-16" aria-label="renamed to"></span> |
41 | 41 | {value.toFile} |
42 | 42 | </span> |
43 | 43 | {/if} |
44 | 44 | {/snippet} |
45 | 45 |
|
46 | 46 | {#snippet collapseToggle()} |
47 | 47 | <button |
| 48 | + title={viewer.collapsed[index] ? "Expand file" : "Collapse file"} |
48 | 49 | type="button" |
49 | 50 | class="flex size-6 items-center justify-center rounded-md btn-ghost p-0.5 text-primary" |
50 | 51 | onclick={(e) => { |
|
53 | 54 | }} |
54 | 55 | > |
55 | 56 | {#if viewer.collapsed[index]} |
56 | | - <span aria-label="expand file" class="iconify size-4 shrink-0 text-primary octicon--chevron-right-16"></span> |
| 57 | + <span aria-label="expand file" class="iconify size-4 shrink-0 text-primary octicon--chevron-right-16" aria-hidden="true"></span> |
57 | 58 | {:else} |
58 | | - <span aria-label="collapse file" class="iconify size-4 shrink-0 text-primary octicon--chevron-down-16"></span> |
| 59 | + <span aria-label="collapse file" class="iconify size-4 shrink-0 text-primary octicon--chevron-down-16" aria-hidden="true"></span> |
59 | 60 | {/if} |
60 | 61 | </button> |
61 | 62 | {/snippet} |
62 | 63 |
|
63 | | -{#snippet popover()} |
| 64 | +{#snippet actionsPopover()} |
64 | 65 | <Popover.Root bind:open={popoverOpen}> |
65 | 66 | <Popover.Trigger |
| 67 | + title="Actions" |
66 | 68 | class="flex size-6 items-center justify-center rounded-md btn-ghost p-0.5 data-[state=open]:btn-ghost-visible" |
67 | 69 | onclick={(e) => e.stopPropagation()} |
68 | 70 | > |
69 | | - <span class="iconify size-4 bg-primary octicon--kebab-horizontal-16"></span> |
| 71 | + <span class="iconify size-4 bg-primary octicon--kebab-horizontal-16" aria-hidden="true"></span> |
70 | 72 | </Popover.Trigger> |
71 | 73 | <Popover.Portal> |
72 | 74 | <Popover.Content class="flex flex-col overflow-hidden rounded-sm border bg-neutral text-sm shadow-sm select-none" sideOffset={4}> |
|
107 | 109 | {#if viewer.patchHeaderDiffOnly[index]} |
108 | 110 | <span class="rounded-sm bg-neutral-3 px-1.5">Patch-header-only diff</span> |
109 | 111 | {/if} |
110 | | - {@render popover()} |
| 112 | + {@render actionsPopover()} |
111 | 113 | {#if !viewer.patchHeaderDiffOnly[index] || !globalOptions.omitPatchHeaderOnlyHunks || isImage} |
112 | 114 | {@render collapseToggle()} |
113 | 115 | {/if} |
|
0 commit comments