@extrachill/components 0.4.37 → 0.4.38
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
CHANGED
package/dist/ResponsiveTabs.js
CHANGED
|
@@ -82,6 +82,6 @@ export function ResponsiveTabs({ tabs, active, onChange, renderPanel, className
|
|
|
82
82
|
}
|
|
83
83
|
setMobileActive(tab.id);
|
|
84
84
|
handleChange(tab.id);
|
|
85
|
-
}, children: [_jsx("span", { children: tab.label }), _jsx("span", { className: `${classPrefix}__arrow`, "aria-hidden": "true", children: isActive ? '▲' : '▼' })] }), isActive && _jsx("div", { className: `${classPrefix}__panel`, children: renderPanel(tab.id) })] }, tab.id));
|
|
85
|
+
}, children: [_jsx("span", { children: tab.label }), _jsx("span", { className: `${classPrefix}__arrow`, "aria-hidden": "true", children: isActive ? '▲' : '▼' })] }), isActive && _jsx("div", { className: `${classPrefix}__panel page-content`, children: renderPanel(tab.id) })] }, tab.id));
|
|
86
86
|
}) }) }) }));
|
|
87
87
|
}
|
|
@@ -45,7 +45,7 @@ function renderAccordion(root, activeTabId, hashPrefix, onPanelRender) {
|
|
|
45
45
|
const template = root.querySelector(`template[data-tab-panel="${tabId}"]`);
|
|
46
46
|
if (template) {
|
|
47
47
|
const panel = document.createElement('div');
|
|
48
|
-
panel.className = 'ec-responsive-tabs__panel';
|
|
48
|
+
panel.className = 'ec-responsive-tabs__panel page-content';
|
|
49
49
|
const content = createNodeFromTemplate(template);
|
|
50
50
|
if (content) {
|
|
51
51
|
panel.appendChild(content);
|
package/package.json
CHANGED
package/src/ResponsiveTabs.tsx
CHANGED
|
@@ -174,7 +174,7 @@ export function ResponsiveTabs( {
|
|
|
174
174
|
{ isActive ? '▲' : '▼' }
|
|
175
175
|
</span>
|
|
176
176
|
</button>
|
|
177
|
-
{ isActive && <div className={ `${ classPrefix }__panel` }>{ renderPanel( tab.id ) }</div>}
|
|
177
|
+
{ isActive && <div className={ `${ classPrefix }__panel page-content` }>{ renderPanel( tab.id ) }</div>}
|
|
178
178
|
</div>
|
|
179
179
|
);
|
|
180
180
|
} ) }
|
|
@@ -74,7 +74,7 @@ function renderAccordion(
|
|
|
74
74
|
const template = root.querySelector<HTMLTemplateElement>( `template[data-tab-panel="${ tabId }"]` );
|
|
75
75
|
if ( template ) {
|
|
76
76
|
const panel = document.createElement( 'div' );
|
|
77
|
-
panel.className = 'ec-responsive-tabs__panel';
|
|
77
|
+
panel.className = 'ec-responsive-tabs__panel page-content';
|
|
78
78
|
const content = createNodeFromTemplate( template );
|
|
79
79
|
if ( content ) {
|
|
80
80
|
panel.appendChild( content );
|