discourse/app/assets/javascripts/admin/addon
Martin Brennan aef3f17b56
DEV: A different approach to breadcrumbs (#27365)
Really fully authored by Jarek, I only made the PR :)

The `DBreadcrumbItem` and `DBreadcrumbContainer` components
introduced in 1239178f49 have
some limitations, mainly that the container has no awareness of
its items, so nothing that requires positional knowledge can
be used. This is needed to use `aria-current` on the last breadcrumb
item, see https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/.

We change `DBreadcrumbItem` to always be a link, removing
the need for `LinkTo`. Then, we introduce a service to keep
track of containers and items (since all items are rendered into
all containers) and make the item itself responsible for registering
to the service, and introduce the needed `aria-current` behaviour.

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-06-07 11:31:46 +10:00
..
adapters FIX: Ensure Theme#settings are instances of ThemeSettings (#26481) 2024-04-03 13:10:47 +08:00
components DEV: A different approach to breadcrumbs (#27365) 2024-06-07 11:31:46 +10:00
controllers DEV: Remove admin-revamp and introduce foundations for admin config (#27293) 2024-06-03 10:18:14 +03:00
helpers DEV: replace registerUnbound usage with default exports (#23802) 2023-10-19 14:28:25 +01:00
lib DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
mixins DEV: Add save button to editing typed objects theme setting route (#26133) 2024-03-13 06:52:46 +08:00
models UX: Disable plugin list settings button for some plugins (#27124) 2024-05-23 12:04:26 +10:00
routes DEV: Remove admin-revamp and introduce foundations for admin config (#27293) 2024-06-03 10:18:14 +03:00
services FIX: More header dropdown admin sidebar fixes (#27241) 2024-05-30 12:55:25 +10:00
templates DEV: A different approach to breadcrumbs (#27365) 2024-06-07 11:31:46 +10:00