@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.119.0",
3
+ "version": "0.119.1",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -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: [
@@ -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
- // A <div>, not an <aside>: <aside> is the `complementary` landmark, and this holds the
313
- // page's primary navigation and the signed-in reader. The <nav> inside it is already
314
- // the landmark that names the menu.
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}