Skip to content

Commit c5fcbb3

Browse files
authored
Fix list item spacing bug on Firefox (#2717)
1 parent 9bc88f4 commit c5fcbb3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎.changeset/proud-apricots-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/starlight': patch
3+
---
4+
5+
Fixes a list item spacing issue where line break elements (`<br>`) could receive a margin, breaking layout in Firefox

‎packages/starlight/style/markdown.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
.sl-markdown-content
2626
li
27-
> :last-child:not(li, ul, ol):not(a, strong, em, del, span, input, :where(.not-content *)) {
27+
> :last-child:not(li, ul, ol, a, strong, em, del, span, input, code, br, :where(.not-content *)) {
2828
margin-bottom: 1.25rem;
2929
}
3030

0 commit comments

Comments
 (0)