Skip to content

Commit

Permalink
fix: remove <Steps> component style containment (#1955)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo authored Jun 5, 2024
1 parent 4c04032 commit 15ef1f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-points-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Reverts a [change](https://github.com/withastro/starlight/pull/1948) to prevent a numbering issue with the `<Steps>` component in future versions of Chrome.
2 changes: 0 additions & 2 deletions packages/starlight/user-components/Steps.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const { html } = processSteps(content);
padding-bottom: 1px;
/* Prevent bullets from touching in short list items. */
min-height: calc(var(--bullet-size) + var(--bullet-margin));
/* Enforce style containment so that nested lists CSS counters are scoped to the contained element. */
contain: style;
}
.sl-steps > li + li {
/* Remove margin between steps. */
Expand Down

0 comments on commit 15ef1f4

Please sign in to comment.