summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiDeoo2024-06-05 09:35:00 +0200
committerGitHub2024-06-05 09:35:00 +0200
commit15ef1f4bdbf7174134121f4bbdf82ca3903c802a (patch)
tree7b155e8e4a1a16d2c1d21ddaaff0d626a25386c8
parent4c040329bdee2caf1bd6a49d9be5d143231b8e83 (diff)
downloadIT.starlight-15ef1f4bdbf7174134121f4bbdf82ca3903c802a.tar.gz
IT.starlight-15ef1f4bdbf7174134121f4bbdf82ca3903c802a.tar.bz2
IT.starlight-15ef1f4bdbf7174134121f4bbdf82ca3903c802a.zip
fix: remove `<Steps>` component style containment (#1955)
-rw-r--r--.changeset/spotty-points-begin.md5
-rw-r--r--packages/starlight/user-components/Steps.astro2
2 files changed, 5 insertions, 2 deletions
diff --git a/.changeset/spotty-points-begin.md b/.changeset/spotty-points-begin.md
new file mode 100644
index 00000000..d4b157c3
--- /dev/null
+++ b/.changeset/spotty-points-begin.md
@@ -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.
diff --git a/packages/starlight/user-components/Steps.astro b/packages/starlight/user-components/Steps.astro
index e768684c..ffd65a35 100644
--- a/packages/starlight/user-components/Steps.astro
+++ b/packages/starlight/user-components/Steps.astro
@@ -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. */