@taprootio/espalier 6.9.1 → 6.11.0
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 +20 -0
- package/custom-elements.json +3320 -3228
- package/dist/breadcrumbs/esp-breadcrumb.d.ts +26 -0
- package/dist/breadcrumbs/esp-breadcrumb.js +20 -4
- package/dist/breadcrumbs/esp-breadcrumbs.d.ts +28 -1
- package/dist/breadcrumbs/esp-breadcrumbs.js +10 -9
- package/dist/footer/esp-footer.d.ts +24 -0
- package/dist/header/esp-header.d.ts +26 -0
- package/dist/menu/esp-menu-group.d.ts +21 -2
- package/dist/menu/esp-menu-group.js +24 -26
- package/dist/menu/esp-menu-item.d.ts +19 -0
- package/dist/menu/esp-menu-item.js +17 -3
- package/dist/menu/esp-menu.js +4 -0
- package/dist/shared/link-copy.js +1 -0
- package/dist/shared/overlay-controller.js +1 -1
- package/dist/tree/esp-tree.d.ts +2 -0
- package/dist/tree/esp-tree.js +13 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
# 6.11.0
|
|
2
|
+
|
|
3
|
+
Drawer navigation controls fit their labels, and trees can limit where children are added.
|
|
4
|
+
|
|
5
|
+
- Menu links and dropdown controls in drawers use content-sized hit regions; dropdown carets stay beside their labels instead of at the row edge.
|
|
6
|
+
- Tree nodes can set `graftTarget: false` to remove child-add controls and block Insert and pending graft commits, while omitted values retain existing behavior.
|
|
7
|
+
- Drawer labels retain their padding, keyboard controls, focus behavior and accessible disclosure state in panel and full-screen presentations.
|
|
8
|
+
|
|
9
|
+
# 6.10.0
|
|
10
|
+
|
|
11
|
+
Navigation can now carry plain HTML links that search engines and HTML-only readers can follow, and breadcrumb trails become a labeled landmark that wraps on narrow screens.
|
|
12
|
+
|
|
13
|
+
- `esp-menu-item`, `esp-menu-group` and `esp-breadcrumb` accept an optional `<a slot="link" href>` copy of their link, and `esp-header` and `esp-footer` accept an `<a slot="brand-link" href>` copy of the brand link. Crawlers, link previews and readers without JavaScript see a real link in the delivered HTML. Once a component loads, the copy is never shown, focused or announced; the attributes still drive what renders, so keep the copy equal to them (same `href`, the visible label as its text, and `target`/`rel` on menu links that set them).
|
|
14
|
+
- Before a component loads, its copy shows as an ordinary link. Pages that reveal content before components load and want no flash can hide copies, at the cost of readers without JavaScript: `:not(:defined) > [slot="link"], :not(:defined) > [slot="brand-link"] { display: none; }`.
|
|
15
|
+
- Focus traps in dialogs, flyouts, search and the lightbox skip the link copies of components that have loaded, so Tab never stops on a link that cannot take focus. Before a component loads, its copy is an ordinary link and stays reachable.
|
|
16
|
+
- A menu item now counts only children without a slot name (or with an empty one) as its icon, so a named-slot child no longer sets the icon layout.
|
|
17
|
+
- `esp-breadcrumbs` renders its trail as a `nav` landmark named `Breadcrumb`; set `aria-label` to name it in another language. If you already wrap the trail in your own `nav`, drop that wrapper to avoid a nested duplicate landmark.
|
|
18
|
+
- The current-page crumb (a crumb without `url`) renders as `<span aria-current="page">` instead of `<label>`, with the same bold, italic and color. Tests that look for `label` inside a crumb need updating.
|
|
19
|
+
- A trail too wide for its line now wraps between crumbs instead of overflowing, and a long current-page label wraps onto further lines, breaking an unbroken word if it must. Linked crumbs stay on one line.
|
|
20
|
+
|
|
1
21
|
# 6.9.1
|
|
2
22
|
|
|
3
23
|
Header navigation groups align with neighboring items and expose their disclosure panels to assistive technology.
|