Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Feat(web-twig): Introduce new prop…
Browse files Browse the repository at this point in the history
… underline to Link component
  • Loading branch information
pavelklibani committed Aug 7, 2024
1 parent 7e95e91 commit ae594de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/web-twig/src/Resources/components/Link/Link.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{%- set _allowedAttributes = [ 'target', 'title' ] -%}

{% if _isUnderlined is defined %}
{% deprecated '"isUnderlined" property will be replaced in the next major version. Please use "underline" instead.' %}
{% deprecated '"isUnderlined" property will be removed in the next major version. Please use "underline" instead.' %}
{% endif %}

<a
Expand Down
10 changes: 5 additions & 5 deletions packages/web-twig/src/Resources/components/Link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Basic example usage:

Advanced example usage:

```html
```twig
<Link
href="#"
color="primary"
Expand Down Expand Up @@ -41,29 +41,29 @@ You can customize the underline behavior for links with three different settings

This is the **default** value, which makes the underline visible only when the component is hovered over.

```html
```twig
<Link href="/" underline="hover">…</Link>
```

Alternatively, you can omit this prop:

```html
```twig
<Link href="/">…</Link>
```

### Always

The underline is constantly visible, regardless of interaction.

```html
```twig
<Link href="/" underline="always">…</Link>
```

### Never

The underline is never visible, even when the link is hovered over.

```html
```twig
<Link href="/" underline="never">…</Link>
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h3 style="margin: 0">Always</h3>
<h3 class="my-0">Always</h3>
<Link href="#" color="primary" underline="always">
Primary Link
</Link>
Expand All @@ -9,7 +9,7 @@
⚠️ Link with Icon
</Link>

<h3 style="margin: 16px 0 0">Never</h3>
<h3 class="mb-0 mt-600">Never</h3>
<Link href="#" color="primary" underline="never">
Primary Link
</Link>
Expand Down

0 comments on commit ae594de

Please sign in to comment.