Skip to content

Commit 088b95c

Browse files
author
Sine Jespersen
committed
5389: style button as link
1 parent 5f04223 commit 088b95c

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/stories/Library/Lists/list-reservation/ListReservationsAndLoans.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ export const ListReservationsAndLoans = (
4646
{material.description}
4747
</p>
4848
</div>
49-
<a
50-
href={material.noteUrl}
49+
<button
50+
type="button"
5151
aria-label="note about material"
52-
className={`list-reservation__note-desktop text-small-caption ${
52+
className={`list-reservation__note-desktop ${
5353
material.noteAsWarning
5454
? "color-signal-alert"
5555
: "color-secondary-gray"
5656
}`}
5757
>
5858
{material.noteLabel}
59-
</a>
59+
</button>
6060
</div>
6161
</div>
6262

@@ -83,7 +83,7 @@ export const ListReservationsAndLoans = (
8383
<p className="text-small-caption">{statusNotes}</p>
8484
<a
8585
href={material.noteUrl}
86-
className={`list-reservation__note-mobile text-small-caption ${
86+
className={`list-reservation__note-mobile ${
8787
material.noteAsWarning
8888
? "color-signal-alert"
8989
: "color-secondary-gray"

src/stories/Library/Lists/list-reservation/list-reservation.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,25 @@ $list-reservation-space-desktop: 24px;
2727
}
2828

2929
.list-reservation__note-mobile {
30+
all: unset;
3031
display: block;
3132
margin-top: 4px;
3233
white-space: break-spaces;
33-
font-size: 12px;
34+
text-decoration: underline;
35+
@extend .text-small-caption;
36+
@extend .color-secondary-gray;
3437

3538
@include breakpoint-s {
3639
display: none;
3740
}
3841
}
3942

4043
.list-reservation__note-desktop {
44+
all: unset;
4145
display: none;
46+
text-decoration: underline;
47+
@extend .text-small-caption;
48+
@extend .color-secondary-gray;
4249

4350
@include breakpoint-s {
4451
display: block;

0 commit comments

Comments
 (0)