Skip to content

Commit 4b5cc58

Browse files
authored
fix(fuselage): List style affecting other components (#727)
1 parent 245303c commit 4b5cc58

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

packages/fuselage/src/components/Message/Messages.styles.scss

+26-26
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,32 @@ $message-background-color-highlight: functions.theme(
168168

169169
color: colors.neutral(800);
170170

171+
& ul,
172+
ol {
173+
margin: 0;
174+
padding-block-start: lengths.padding(4);
175+
padding-block-end: 0;
176+
padding-inline: 0;
177+
178+
list-style: none;
179+
}
180+
181+
& ul li::before {
182+
padding: 0 lengths.padding(8);
183+
184+
content: '';
185+
186+
font-weight: bold;
187+
}
188+
189+
& ol li::before {
190+
padding: 0 lengths.padding(8);
191+
192+
content: attr(value) '.';
193+
194+
font-weight: bold;
195+
}
196+
171197
&--clamp {
172198
display: -webkit-box;
173199
overflow: hidden;
@@ -207,32 +233,6 @@ $message-background-color-highlight: functions.theme(
207233
}
208234
}
209235

210-
& ul,
211-
ol {
212-
margin: 0;
213-
padding-block-start: lengths.padding(4);
214-
padding-block-end: 0;
215-
padding-inline: 0;
216-
217-
list-style: none;
218-
}
219-
220-
& ul li::before {
221-
padding: 0 lengths.padding(8);
222-
223-
content: '';
224-
225-
font-weight: bold;
226-
}
227-
228-
& ol li::before {
229-
padding: 0 lengths.padding(8);
230-
231-
content: attr(value) '.';
232-
233-
font-weight: bold;
234-
}
235-
236236
&__emoji {
237237
display: inline-block;
238238

0 commit comments

Comments
 (0)