Fix keyboard navigation in the export card
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
82f632f63a
commit
f452d72050
1 changed files with 5 additions and 2 deletions
|
|
@ -247,12 +247,15 @@ export function ExportDialog({
|
||||||
|
|
||||||
const defaultTrigger =
|
const defaultTrigger =
|
||||||
variant === "card" ? (
|
variant === "card" ? (
|
||||||
<div className="flex flex-col items-center justify-center gap-2 cursor-pointer h-full w-full">
|
<button
|
||||||
|
type="button"
|
||||||
|
className="flex flex-col items-center justify-center gap-2 cursor-pointer h-full w-full border-0 bg-transparent p-0 hover:opacity-80 transition-opacity"
|
||||||
|
>
|
||||||
<Download className="h-8 w-8 text-muted-foreground" />
|
<Download className="h-8 w-8 text-muted-foreground" />
|
||||||
<span className="text-sm font-medium text-muted-foreground">
|
<span className="text-sm font-medium text-muted-foreground">
|
||||||
{triggerLabel ?? `Export ${isSingleItem ? "config" : "configs"}`}
|
{triggerLabel ?? `Export ${isSingleItem ? "config" : "configs"}`}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
<Button variant={variant} size={size}>
|
<Button variant={variant} size={size}>
|
||||||
{showIcon && <Download className="h-4 w-4 mr-2" />}
|
{showIcon && <Download className="h-4 w-4 mr-2" />}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue