@kaizen/components 0.0.0-canary-update-floating-fms-20250715035144 → 0.0.0-canary-test-relative-floating-fix-20250717062523

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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
+ var VisuallyHidden = require('../../../../VisuallyHidden/VisuallyHidden.cjs');
5
6
  var ListBoxSection_module = require('./ListBoxSection.module.scss.cjs');
6
7
  function _interopDefault(e) {
7
8
  return e && e.__esModule ? e : {
@@ -27,7 +28,7 @@ var ListBoxSection = function (_a) {
27
28
  className: ListBoxSection_module.listBoxSectionHeader,
28
29
  id: listSectionId,
29
30
  role: "presentation"
30
- }, restProps.sectionHeader), Array.from(items).map(function (node) {
31
+ }, sectionName && React__default.default.createElement(VisuallyHidden.VisuallyHidden, null, sectionName, ". "), restProps.sectionHeader), Array.from(items).map(function (node) {
31
32
  return node != undefined && children(node);
32
33
  })));
33
34
  };
@@ -1,5 +1,6 @@
1
1
  import { __rest } from 'tslib';
2
2
  import React, { useId } from 'react';
3
+ import { VisuallyHidden } from '../../../../VisuallyHidden/VisuallyHidden.mjs';
3
4
  import styles from './ListBoxSection.module.scss.mjs';
4
5
  const ListBoxSection = /*#__PURE__*/function () {
5
6
  const ListBoxSection = function (_a) {
@@ -20,7 +21,7 @@ const ListBoxSection = /*#__PURE__*/function () {
20
21
  className: styles.listBoxSectionHeader,
21
22
  id: listSectionId,
22
23
  role: "presentation"
23
- }, restProps.sectionHeader)), Array.from(items).map(function (node) {
24
+ }, sectionName && /*#__PURE__*/React.createElement(VisuallyHidden, null, sectionName, ". "), restProps.sectionHeader)), Array.from(items).map(function (node) {
24
25
  return node != undefined && children(node);
25
26
  })));
26
27
  };
package/dist/styles.css CHANGED
@@ -3776,6 +3776,7 @@
3776
3776
  padding: 0;
3777
3777
  }
3778
3778
  .ListBoxSection-module_listBoxSectionHeader__N-2Fi {
3779
+ position: relative;
3779
3780
  font-family: var(--typography-heading-6-font-family, "Inter", "Noto Sans", Helvetica, Arial, sans-serif);
3780
3781
  font-size: var(--typography-heading-6-font-size, 0.875rem);
3781
3782
  font-weight: var(--typography-heading-6-font-weight, 600);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "0.0.0-canary-update-floating-fms-20250715035144",
3
+ "version": "0.0.0-canary-test-relative-floating-fix-20250717062523",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -414,7 +414,6 @@ export const ShouldFlip: Story = {
414
414
  args: {
415
415
  floatingConfig: {
416
416
  shouldFlip: true,
417
- shouldResize: false,
418
417
  },
419
418
  },
420
419
  parameters: {
@@ -10,6 +10,7 @@
10
10
  }
11
11
 
12
12
  .listBoxSectionHeader {
13
+ position: relative; // this is needed to ensure the VisuallyHidden element doesn't impact the scroll height of the list
13
14
  font-family: $typography-heading-6-font-family;
14
15
  font-size: $typography-heading-6-font-size;
15
16
  font-weight: $typography-heading-6-font-weight;
@@ -47,7 +47,7 @@ export const ListBoxSection = ({
47
47
  >
48
48
  {hasSectionHeader && (
49
49
  <li className={styles.listBoxSectionHeader} id={listSectionId} role="presentation">
50
- {/* {sectionName && <VisuallyHidden>{sectionName}. </VisuallyHidden>} */}
50
+ {sectionName && <VisuallyHidden>{sectionName}. </VisuallyHidden>}
51
51
  {restProps.sectionHeader}
52
52
  </li>
53
53
  )}