@allxsmith/bestax-bulma 5.66.0 → 5.66.2

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.
@@ -96,7 +96,17 @@ export interface NavbarItemOwnProps extends Omit<BulmaClassesProps, 'color' | 'b
96
96
  backgroundColor?: never;
97
97
  /** Additional CSS classes. */
98
98
  className?: string;
99
- /** Whether the item is active. */
99
+ /**
100
+ * Marks the item as the current one. It adds Bulma's `is-active` class, and
101
+ * `aria-current="page"` on the element `as` renders, so assistive tech can
102
+ * tell which item is current too. An `aria-current` you pass wins, even
103
+ * `undefined`: use it to say something else (`"location"` for a section of
104
+ * one page, say), or `aria-current={false}` to turn it off. An `active` item
105
+ * that isn't navigation takes `aria-current={false}`: an `as="button"`
106
+ * control, say, or a `has-dropdown` container like the
107
+ * `<Navbar.Item as="div" className="has-dropdown" active>` older
108
+ * bestax-migrate versions wrote. That one can be a `Navbar.Dropdown` instead.
109
+ */
100
110
  active?: boolean;
101
111
  /** Text color for the item. */
102
112
  textColor?: (typeof validColors)[number] | 'inherit' | 'current';
@@ -96,7 +96,17 @@ export interface NavbarItemOwnProps extends Omit<BulmaClassesProps, 'color' | 'b
96
96
  backgroundColor?: never;
97
97
  /** Additional CSS classes. */
98
98
  className?: string;
99
- /** Whether the item is active. */
99
+ /**
100
+ * Marks the item as the current one. It adds Bulma's `is-active` class, and
101
+ * `aria-current="page"` on the element `as` renders, so assistive tech can
102
+ * tell which item is current too. An `aria-current` you pass wins, even
103
+ * `undefined`: use it to say something else (`"location"` for a section of
104
+ * one page, say), or `aria-current={false}` to turn it off. An `active` item
105
+ * that isn't navigation takes `aria-current={false}`: an `as="button"`
106
+ * control, say, or a `has-dropdown` container like the
107
+ * `<Navbar.Item as="div" className="has-dropdown" active>` older
108
+ * bestax-migrate versions wrote. That one can be a `Navbar.Dropdown` instead.
109
+ */
100
110
  active?: boolean;
101
111
  /** Text color for the item. */
102
112
  textColor?: (typeof validColors)[number] | 'inherit' | 'current';