Skip to content

Commit 7f8c8d0

Browse files
committed
Avoid name collision, update to demo thickness hover
1 parent 6772e18 commit 7f8c8d0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

scss/_utilities.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ $utilities: map.merge(
785785
),
786786
"underline-thickness": (
787787
property: text-decoration-thickness,
788-
class: underline,
788+
class: underline-thickness,
789789
state: hover,
790790
values: (
791791
1: 1px,

site/src/content/docs/utilities/text-decoration.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ Change the underline's opacity. Requires adding `.underline-{color}` to first se
5858
Change the thickness of the underline.
5959

6060
<Example code={`<p><a href="#">Default link</a></p>
61-
<p><a class="underline-1" href="#">Thickness 1 link</a></p>
62-
<p><a class="underline-2" href="#">Thickness 2 link</a></p>
63-
<p><a class="underline-3" href="#">Thickness 3 link</a></p>
64-
<p><a class="underline-4" href="#">Thickness 4 link</a></p>
65-
<p><a class="underline-5" href="#">Thickness 5 link</a></p>`} />
61+
<p><a class="underline-thickness-1" href="#">Thickness 1 link</a></p>
62+
<p><a class="underline-thickness-2" href="#">Thickness 2 link</a></p>
63+
<p><a class="underline-thickness-3" href="#">Thickness 3 link</a></p>
64+
<p><a class="underline-thickness-4" href="#">Thickness 4 link</a></p>
65+
<p><a class="underline-thickness-5" href="#">Thickness 5 link</a></p>`} />
6666

6767
### Hover variants
6868

6969
The `.underline-offset`, `.underline-{N}`, and `.underline-thickness` utilities include `:hover` variants by default. Mix and match to create unique link styles.
7070

71-
<Example code={`<a class="underline-offset-2 underline-offset-3-hover underline-10 underline-50-hover" href="#">
71+
<Example code={`<a class="underline-offset-2 underline-offset-3-hover underline-10 underline-50-hover underline-thickness-2-hover" href="#">
7272
Underline with offset and opacity changes on hover
7373
</a>`} />
7474

0 commit comments

Comments
 (0)