diff --git a/src/lib/browser/components/Arrow.svelte b/src/lib/browser/components/Arrow.svelte index b34a9dc..5bc855e 100644 --- a/src/lib/browser/components/Arrow.svelte +++ b/src/lib/browser/components/Arrow.svelte @@ -1,6 +1,5 @@ - - - + {/if} @@ -92,8 +108,7 @@ &.secondary { border: 0; - padding-block: 0; - padding-inline: $unit-half; + padding: $unit-quarter $unit-half; } &.inline { border: 0; @@ -109,10 +124,18 @@ &.l { @include button-style($l-primary, $l-accent); + + .outline { + @include draw-image-black(); + } } &.d { @include button-style($d-primary, $d-accent); + + .outline { + @include draw-image-white(); + } } &__text { @@ -121,9 +144,26 @@ } &__icon { - height: $unit; object-fit: contain; - width: $unit; + vertical-align: middle; + @include smooth-change(filter, transform); + + &.xl { + height: $unit-triple; + width: $unit-triple; + } + &.lg { + height: $unit-double; + width: $unit-double; + } + &.md { + height: $unit-plus; + width: $unit-plus; + } + &.sm { + height: $unit; + width: $unit; + } } } diff --git a/src/lib/browser/ui/Link.svelte b/src/lib/browser/ui/Link.svelte index dcc8fb3..3911ab4 100644 --- a/src/lib/browser/ui/Link.svelte +++ b/src/lib/browser/ui/Link.svelte @@ -12,7 +12,7 @@ export let raw = false; - export let control = true; + export let printVisible = true; const dispatch = createEventDispatcher(); @@ -35,8 +35,6 @@ class:l="{!isDark}" class:d="{isDark}" on:click="{onClick}" - aria-hidden="{control ? undefined : 'true'}" - tabindex="{control ? undefined : -1}" href="{url}" title="{hint}" target="_blank" @@ -51,7 +49,7 @@ class:l="{!isDark}" class:d="{isDark}" class:inline - class:no-print="{!control}" + class:no-print="{!printVisible}" on:click="{onClick}" href="{url}" title="{hint}"