@tangible/ui 0.2.31 → 0.2.32
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/components/Sidebar/Sidebar.js +6 -2
- package/figma-tokens.json +1 -1
- package/package.json +1 -1
- package/tui-manifest.json +2 -2
|
@@ -215,7 +215,10 @@ function SidebarRoot(props) {
|
|
|
215
215
|
function SidebarHeader(props) {
|
|
216
216
|
const { children, className } = props;
|
|
217
217
|
const headerClassName = ['tui-sidebar__header', className].filter(Boolean).join(' ');
|
|
218
|
-
|
|
218
|
+
// A div, not <header>: outside a sectioning element <header> maps to
|
|
219
|
+
// banner, and a drawer's dialog doesn't scope it, so an open drawer added a
|
|
220
|
+
// second banner to the page. Inside the static <aside> it was generic anyway.
|
|
221
|
+
return _jsx("div", { className: headerClassName, children: children });
|
|
219
222
|
}
|
|
220
223
|
// =============================================================================
|
|
221
224
|
// Sidebar.Footer
|
|
@@ -223,7 +226,8 @@ function SidebarHeader(props) {
|
|
|
223
226
|
function SidebarFooter(props) {
|
|
224
227
|
const { children, className } = props;
|
|
225
228
|
const footerClassName = ['tui-sidebar__footer', className].filter(Boolean).join(' ');
|
|
226
|
-
|
|
229
|
+
// A div for the same reason as Sidebar.Header: <footer> maps to contentinfo.
|
|
230
|
+
return _jsx("div", { className: footerClassName, children: children });
|
|
227
231
|
}
|
|
228
232
|
// =============================================================================
|
|
229
233
|
// Sidebar.Nav
|
package/figma-tokens.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2.
|
|
2
|
+
"version": "0.2.32",
|
|
3
3
|
"source": "publish/styles/all.expanded.css",
|
|
4
4
|
"prefix": "tui-",
|
|
5
5
|
"note": "Layer 1 primitives only. Component API tokens (--tui-{component}-*) are never defined in CSS — they exist only as fallback reads — so they have no Figma representation. CONTRACT: consumers read TUI defaults from this file at build time (variables[].cssVar, the \"Light\"/\"Dark\" mode names, and alias chains into TUI/Primitives). Renaming a cssVar or a mode is a breaking change to those consumers even when the CSS value is unchanged — a rename silently becomes an undefined default downstream — so treat it as at least a minor bump and call it out in the CHANGELOG.",
|
package/package.json
CHANGED
package/tui-manifest.json
CHANGED