Skip to content

Commit 05f69d9

Browse files
author
taazust5
committed
fix(CHGOV-3104): add notification offset class
1 parent ffb68e3 commit 05f69d9

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

app/components/ch/components/Notification.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
v-html="title"
1313
/>
1414
</div>
15-
<div class="notification__content" v-html="text" />
15+
<div
16+
class="notification__content"
17+
:class="{ 'notification__content-offset': icon }"
18+
v-html="text"
19+
/>
1620
<button
1721
v-if="closeBtn"
1822
class="notification__close"

css/components/notification.postcss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
.btn,
1212
a,
13-
a[target='_blank'],
14-
a[target='_self'],
15-
a[rel*=external]{
13+
a[target="_blank"],
14+
a[target="_self"],
15+
a[rel*="external"] {
1616
@apply text-current border-current;
1717

1818
&:hover {
@@ -21,7 +21,7 @@
2121
}
2222

2323
a,
24-
a[target='_blank'] {
24+
a[target="_blank"] {
2525
@apply underline underline-offset-2;
2626
}
2727
}
@@ -106,7 +106,7 @@
106106
.notification--with-title {
107107
@apply block;
108108

109-
.notification__content {
109+
.notification__content-offset {
110110
@apply ml-[3.3rem];
111111
}
112112
}

0 commit comments

Comments
 (0)