@fluid-topics/ft-search-breadcrumbs 2.0.4 → 2.0.6

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.
@@ -13,7 +13,6 @@ import { accessBreadcrumb, accessResultId, numberProperty, } from "@fluid-topics
13
13
  import { styles } from "./ft-search-breadcrumbs.styles";
14
14
  import { FtTypography, FtTypographyVariants, } from "@fluid-topics/ft-typography";
15
15
  import { withI18n } from "@fluid-topics/ft-i18n";
16
- import { searchBreadcrumbsContext, searchBreadcrumbsDefaultMessages, } from "./SearchBreadcrumbsMessages";
17
16
  import { FtRipple } from "@fluid-topics/ft-ripple";
18
17
  import { FtSearchResultComponent } from "@fluid-topics/ft-search-result-context/build/registration";
19
18
  import { FtSelect, FtSelectOption, } from "@fluid-topics/ft-select";
@@ -27,7 +26,6 @@ class FtSearchBreadcrumbs extends withI18n(FtSearchResultComponent) {
27
26
  this.useAsClusterSwitch = false;
28
27
  this.goToDocumentOnSwitch = false;
29
28
  this.breadcrumbs = [];
30
- this.addI18nContext(searchBreadcrumbsContext, searchBreadcrumbsDefaultMessages);
31
29
  }
32
30
  get hasMultiBreadcrumbs() {
33
31
  return this.breadcrumbs.length > 1 && this.useAsClusterSwitch;
@@ -69,7 +67,7 @@ class FtSearchBreadcrumbs extends withI18n(FtSearchResultComponent) {
69
67
  "multiline": !!this.multiline,
70
68
  };
71
69
  return html `
72
- <ol slot="${slot}" part="breadcrumb-list" class="${classMap(cssClasses)}" aria-label="${searchBreadcrumbsContext.messages.olAriaLabel()}">
70
+ <ol slot="${slot}" part="breadcrumb-list" class="${classMap(cssClasses)}" aria-label="${breadcrumb.breadcrumb.join(" ")}">
73
71
  ${this.renderSplitBreadcrumb(breadcrumb)}
74
72
  </ol>`;
75
73
  }