@redocly/theme 0.54.2 → 0.54.3

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.
@@ -92,6 +92,9 @@ function Tabs({ children, className, size }) {
92
92
  else {
93
93
  setHighlightStyle({ left: offsetLeft, width: offsetWidth });
94
94
  }
95
+ if (visibleTabs.includes(activeIndex)) {
96
+ activeTabElement === null || activeTabElement === void 0 ? void 0 : activeTabElement.classList.add('active');
97
+ }
95
98
  return () => {
96
99
  container.querySelectorAll('[data-label]').forEach((el) => {
97
100
  el.classList.remove('active');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.54.2",
3
+ "version": "0.54.3",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -105,6 +105,10 @@ export function Tabs({ children, className, size }: TabsProps): JSX.Element {
105
105
  setHighlightStyle({ left: offsetLeft, width: offsetWidth });
106
106
  }
107
107
 
108
+ if (visibleTabs.includes(activeIndex)) {
109
+ activeTabElement?.classList.add('active');
110
+ }
111
+
108
112
  return () => {
109
113
  container.querySelectorAll('[data-label]').forEach((el) => {
110
114
  el.classList.remove('active');