@apliteni/apliteni-ui 0.119.0 → 0.119.1
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/package.json +1 -1
- package/react/dist/index.js +1 -1
- package/src/components/shell.js +4 -4
package/package.json
CHANGED
package/react/dist/index.js
CHANGED
|
@@ -3727,7 +3727,7 @@ function AppShell({
|
|
|
3727
3727
|
/* @__PURE__ */ jsx34("span", { children: word })
|
|
3728
3728
|
] });
|
|
3729
3729
|
return /* @__PURE__ */ jsxs29("div", { className: `ui-app ui-app--topbar ui-react-app${collapsed ? " is-collapsed" : ""}`, children: [
|
|
3730
|
-
navigable && /* @__PURE__ */ jsxs29("div", { className: "ui-app__rail", children: [
|
|
3730
|
+
navigable && /* @__PURE__ */ jsxs29("div", { className: "ui-app__rail", role: "region", "aria-label": "Sidebar", children: [
|
|
3731
3731
|
/* @__PURE__ */ jsx34("div", { className: "ui-app__head", children: lockup }),
|
|
3732
3732
|
sidebar(sections, "Sections"),
|
|
3733
3733
|
/* @__PURE__ */ jsx34("div", { className: "ui-app__foot", children: /* @__PURE__ */ jsx34("div", { className: "ui-app__fold-row", children: /* @__PURE__ */ jsxs29("button", { type: "button", className: "ui-nav__item ui-app__fold", "aria-expanded": !collapsed, "aria-label": foldLabel, onClick: fold, children: [
|
package/src/components/shell.js
CHANGED
|
@@ -309,9 +309,9 @@ export function appShell(options = {}) {
|
|
|
309
309
|
// the product's mark. why: docs/components.md#the-page-shell
|
|
310
310
|
const brand = compat ? '' : `<a class="ui-app__brand" href="${esc(safeUrl(brandHref))}" aria-label="${esc(word)}">`
|
|
311
311
|
+ `${prism(`appb-${++_shellUid}`, 24)}<span>${esc(word)}</span></a>`;
|
|
312
|
-
//
|
|
313
|
-
//
|
|
314
|
-
//
|
|
312
|
+
// The named region covers the brand and fold as well as the navigation.
|
|
313
|
+
// The primary navigation keeps its own landmark inside the region.
|
|
314
|
+
// The rail holds primary navigation, so it is not a complementary landmark.
|
|
315
315
|
// A fold needs the toggle that undoes it. `data-rail="auto"` marks a shell whose
|
|
316
316
|
// caller left the choice to the reader; wireShell() applies the stored one there.
|
|
317
317
|
const folded = collapsible && collapsed === true;
|
|
@@ -342,7 +342,7 @@ export function appShell(options = {}) {
|
|
|
342
342
|
? `<div class="ui-app__well">${shellBar(search, account, signOutHref)}${main}</div>`
|
|
343
343
|
: main;
|
|
344
344
|
const grid = `<div class="ui-app${banded ? ' ui-app--topbar' : ''}${folded ? ' is-collapsed' : ''}"${auto}>
|
|
345
|
-
<div class="ui-app__rail">
|
|
345
|
+
<div class="ui-app__rail" role="region" aria-label="Sidebar">
|
|
346
346
|
${head}
|
|
347
347
|
${rail}
|
|
348
348
|
${foot}
|