Skip to content

Commit ef56968

Browse files
committed
accounting for ribbon edge cases
1 parent 0aaff77 commit ef56968

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

libs/blocks/notification/notification.css

+11
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,24 @@
152152
inline-size: 100%;
153153
}
154154

155+
.notification.ribbon [class*="heading-"]:only-child {
156+
margin-block-end: var(--spacing-s);
157+
}
158+
159+
.notification.ribbon.space-between [class*="heading-"]:only-child {
160+
margin-block-end: 0;
161+
}
162+
155163
.notification.ribbon.space-between .foreground .text {
156164
flex-wrap: nowrap;
157165
inline-size: 100%;
158166
}
159167

160168
.notification.ribbon.space-between .foreground .copy-wrap {
161169
margin-inline-end: var(--spacing-s);
170+
display: flex;
171+
flex-direction: column;
172+
justify-content: center;
162173
}
163174

164175
.notification .foreground .image {

0 commit comments

Comments
 (0)