mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
chore(links): add rel="" to all links
This commit is contained in:
parent
2a63aa7729
commit
32077693e0
7 changed files with 8 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
|||
{#if href}
|
||||
<a
|
||||
href="{href}"
|
||||
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
|
||||
role="button"
|
||||
class:bx--skeleton="{true}"
|
||||
class:bx--btn="{true}"
|
||||
|
|
|
@ -123,6 +123,7 @@
|
|||
{#if skeleton}
|
||||
<ButtonSkeleton
|
||||
href="{href}"
|
||||
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
|
||||
small="{size === 'small'}"
|
||||
{...$$restProps}
|
||||
style="{hasIconOnly && 'width: 3rem;'}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue