fix: label 'for' attributes in user-api-key-grid (#24232)

This commit is contained in:
Jacob Bundgaard
2025-11-28 00:28:38 +01:00
committed by GitHub
parent 01f83ae964
commit 81edf0749f

View File

@@ -39,7 +39,7 @@
checked={selectAllSubItems} checked={selectAllSubItems}
onCheckedChange={handleSelectAllSubItems} onCheckedChange={handleSelectAllSubItems}
/> />
<Label label={title} for={title} class="font-mono text-primary text-lg" /> <Label label={title} for="permission-{title}" class="font-mono text-primary text-lg" />
</div> </div>
<div class="mx-6 mt-3 grid grid-cols-3 gap-2"> <div class="mx-6 mt-3 grid grid-cols-3 gap-2">
{#each subItems as item (item)} {#each subItems as item (item)}
@@ -50,7 +50,7 @@
checked={selectedItems.includes(item)} checked={selectedItems.includes(item)}
onCheckedChange={() => handleToggleItem(item)} onCheckedChange={() => handleToggleItem(item)}
/> />
<Label label={item} for={item} class="text-sm font-mono" /> <Label label={item} for="permission-{item}" class="text-sm font-mono" />
</div> </div>
{/each} {/each}
</div> </div>