From 15ef1f4bdbf7174134121f4bbdf82ca3903c802a Mon Sep 17 00:00:00 2001 From: HiDeoo Date: Wed, 5 Jun 2024 09:35:00 +0200 Subject: fix: remove `` component style containment (#1955) --- .changeset/spotty-points-begin.md | 5 +++++ packages/starlight/user-components/Steps.astro | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changeset/spotty-points-begin.md 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 `` 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. */ -- cgit