@astrojs/starlight 0.28.1 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/user-components/Tabs.astro +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.28.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2377](https://github.com/withastro/starlight/pull/2377) [`a257b83`](https://github.com/withastro/starlight/commit/a257b83f1e5704ff41bcbe85482ac81a1a61ce1f) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue with synced `<Tabs>` components containing nested `<Tabs>` causing tab panels to not render correctly.
|
|
8
|
+
|
|
3
9
|
## 0.28.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@ if (isSynced) {
|
|
|
54
54
|
const tabIndexToRestore = tabs.findIndex(
|
|
55
55
|
(tab) => tab instanceof HTMLAnchorElement && tab.textContent?.trim() === label
|
|
56
56
|
);
|
|
57
|
-
const panels = starlightTabs?.querySelectorAll('[role="tabpanel"]');
|
|
57
|
+
const panels = starlightTabs?.querySelectorAll(':scope > [role="tabpanel"]');
|
|
58
58
|
const newTab = tabs[tabIndexToRestore];
|
|
59
59
|
const newPanel = panels[tabIndexToRestore];
|
|
60
60
|
if (tabIndexToRestore < 1 || !newTab || !newPanel) return;
|