Fixed page links
This commit is contained in:
parent
5c7d2ec49f
commit
7c7afa9171
2 changed files with 3 additions and 3 deletions
|
|
@ -33,14 +33,14 @@ export default (props: Props) => {
|
|||
<Show when={props.to}>
|
||||
<Switch>
|
||||
<Match when={props.design}>
|
||||
<A href={props.to!} aria-label={props.label} target={props.newtab ? '_blank' : '_self'}>
|
||||
<A href={props.to!} aria-label={props.label} target={props.newtab ? '_blank' : ''}>
|
||||
<button class={props.design} style={borderRadius}>
|
||||
{props.label || 'Click Me!'}
|
||||
</button>
|
||||
</A>
|
||||
</Match>
|
||||
<Match when={!props.design}>
|
||||
<A href={props.to!} aria-label={props.label} target={props.newtab ? '_blank' : '_self'}>
|
||||
<A href={props.to!} aria-label={props.label} target={props.newtab ? '_blank' : ''}>
|
||||
<button class="button" style={borderRadius}>
|
||||
{props.label || 'Click Me!'}
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ interface Props {
|
|||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<A href={props.to} aria-label={`Go to ${props.to}`} target={props.newtab ? '_blank' : '_self'} data-astro-prefetch>
|
||||
<A href={props.to} aria-label={`Go to ${props.to}`} target={props.newtab ? '_blank' : ''}>
|
||||
{props.children}
|
||||
</A>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue