Skip to content

Compact list inside of an expanded list should have bottom margin #3860

@itrew

Description

@itrew

What version of starlight are you using?

0.38.4

What version of astro are you using?

6.1.9

What package manager are you using?

npm

What operating system are you using?

Windows

What browser are you using?

Edge

Describe the Bug

Found this discussion on Discord.

When a compact list is the last item within an expanded list (e.g. <Steps>), the list element does not have a bottom margin set.

<Steps>

1. This is the first step.

2. This is the second step.
   - This is sub-step **a**.
   - This is sub-step **b**.
   - This is sub-step **c**.

3. This is the third step.

</Steps>

Actual Output

Image

Expected Output

Image

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-oapspcza?file=src%2Fcontent%2Fdocs%2Fguides%2Fexample.md

Solution

Would recommend removing the ol and ul exclusion here.

Addressed in #3862 with custom CSS.

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions