@allxsmith/bestax-bulma 5.65.0 → 5.65.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.
@@ -37,6 +37,16 @@ export interface NavbarProps extends React.HTMLAttributes<HTMLElement>, Omit<Bul
37
37
  fixed?: 'top' | 'bottom';
38
38
  /** Navbar content (compose with subcomponents). */
39
39
  children?: React.ReactNode;
40
+ /**
41
+ * Accessible name. Defaults to `main navigation`. A screen reader announces
42
+ * it with the landmark's role, and since the name holds the role word,
43
+ * "navigation" is heard twice. Pass a name without it (`aria-label="Site"`),
44
+ * and a different name on each Navbar when a page has more than one. A
45
+ * passed `aria-label` replaces the default, and `aria-label={undefined}`
46
+ * removes it, leaving the landmark unnamed.
47
+ * @defaultValue 'main navigation'
48
+ */
49
+ 'aria-label'?: React.AriaAttributes['aria-label'];
40
50
  }
41
51
  /**
42
52
  * Props for the NavbarBrand component.
@@ -37,6 +37,16 @@ export interface NavbarProps extends React.HTMLAttributes<HTMLElement>, Omit<Bul
37
37
  fixed?: 'top' | 'bottom';
38
38
  /** Navbar content (compose with subcomponents). */
39
39
  children?: React.ReactNode;
40
+ /**
41
+ * Accessible name. Defaults to `main navigation`. A screen reader announces
42
+ * it with the landmark's role, and since the name holds the role word,
43
+ * "navigation" is heard twice. Pass a name without it (`aria-label="Site"`),
44
+ * and a different name on each Navbar when a page has more than one. A
45
+ * passed `aria-label` replaces the default, and `aria-label={undefined}`
46
+ * removes it, leaving the landmark unnamed.
47
+ * @defaultValue 'main navigation'
48
+ */
49
+ 'aria-label'?: React.AriaAttributes['aria-label'];
40
50
  }
41
51
  /**
42
52
  * Props for the NavbarBrand component.