Skip to content

Latest commit

 

History

History
625 lines (415 loc) · 15.5 KB

CHANGELOG.md

File metadata and controls

625 lines (415 loc) · 15.5 KB

@leafygreen-ui/radio-box-group

14.0.5

Patch Changes

14.0.4

Patch Changes

14.0.3

Patch Changes

14.0.2

Patch Changes

14.0.1

Patch Changes

14.0.0

Major Changes

  • 274d7e1a7: Removes prop-types from LeafyGreen UI

Patch Changes

13.0.2

Patch Changes

  • e7bc12814: Adds more thorough test coverage for disabled inputs
  • Updated dependencies [c1b8b633b]
  • Updated dependencies [fe2483937]

13.0.1

Patch Changes

  • 668cb1183: Ensures that event handlers do not fire when input is disabled

13.0.0

Major Changes

  • 7a0ff1be: LG-4126

    Disabled Checkbox, RadioBox, and Radio components no longer render the disabled attribute, but rely on aria-disabled instead.

    This change is made to ensure that disabled components are still focusable to users using keyboard navigation.

    For more on aria-disabled see the documentation on MDN

    Additionally, styling changes are made to ensure consistent implementation of disabled state styles.

    Migration guide

    Functionally, migration should be seamless, however there may be unit/integration/e2e tests that relied on this behavior.

    Jest/RTL

    Generally, only this repo should need to test that these components have a specific attribute. We recommend updating unit tests to check that some event was or was not called.

    However, there are cases where this may still need to be tested. In these cases, replace any expect(checkbox).toBeDisabled() with an explicit check for expect(checkbox).toHaveAttribute("aria-disabled", "true").

    Cypress

    Similar to unit tests, you should generally test functionality and not implementation details. However, to test this in Cypress replace any cy.get(checkbox).should('be.disabled'); checks with cy.get(checkbox).invoke('attr', 'aria-disabled').should('eq', 'true');

Patch Changes

12.0.16

Patch Changes

12.0.15

Patch Changes

12.0.14

Patch Changes

12.0.13

Patch Changes

12.0.12

Patch Changes

12.0.11

Patch Changes

12.0.10

Patch Changes

12.0.9

Patch Changes

  • 76161cf0: Updates stories for Chromatic testing
  • Updated dependencies [735342e9]
  • Updated dependencies [76161cf0]

12.0.8

Patch Changes

  • d2ce54e2f: Updates story files for Storybook 7.x
  • Updated dependencies [d2ce54e2f]
  • Updated dependencies [d2ce54e2f]

12.0.7

Patch Changes

  • a3a52e131: Bumps to use new useIdAllocator hook
  • Updated dependencies [a3a52e131]

12.0.6

Patch Changes

  • 32b3d3146: Bumps to use new useIdAllocator hook
  • 73cbbd02c: Uses fontWeight token from @leafygreen-ui/tokens
  • Updated dependencies [73cbbd02c]
  • Updated dependencies [8ece56980]
  • Updated dependencies [32b3d3146]

12.0.5

Patch Changes

12.0.4

Patch Changes

12.0.3

Patch Changes

  • c82ed35d5: Removes useUsingKeyboardContext from component, in favor of &:focus-visible
  • b24b21462: Storybook: Updates story files to be on par with existing mongodb.design examples
  • Updated dependencies [741cdd408]
  • Updated dependencies [b24b21462]

12.0.2

Patch Changes

  • b7f7a4c95: Updates package dependencies & devDependencies, and ensures each package is appropriately listed. Ensures tsconfig has no circular dependencies
  • Updated dependencies [b7f7a4c95]

12.0.1

Patch Changes

  • ae5421cf6: Updates components to use internal transition tokens
  • Updated dependencies [ae5421cf6]

12.0.0

Major Changes

  • 30207122: Updates RadioBoxGroup for dark mode brand refresh. Exports RadioBoxProps and RadioBoxGroupProps.

Patch Changes

11.0.0

Major Changes

  • f2d63a60: Removes leafygreen data attributes (prefixed with data-leafygreen-ui-), and replaces them with deterministic classNames (prefixed with lg-ui-)

Patch Changes

10.0.0

Patch Changes

  • Updated dependencies [e399f1b9]
  • Updated dependencies [e399f1b9]

9.1.1

Patch Changes

9.1.0

Minor Changes

  • 3690df49: Updates TypeScript annotations, type structures and export format of some components

Patch Changes

9.0.3

Patch Changes

9.0.2

Patch Changes

  • 5a3a7623: Improves RadioBox + Tooltip compatibility, resolving an issue where Tooltips would not appear when a RadioBox was used as a trigger.
  • Updated dependencies [65c86281]
  • Updated dependencies [4ad8cbc0]
  • Updated dependencies [9cb53590]

9.0.1

Patch Changes

  • 1d471e2c: Removes stacking context from Radio Box

9.0.0

Patch Changes

8.0.2

Patch Changes

  • 96d1ff9c: Updates to propTypes, TSDocs, and Storybook controls
  • Updated dependencies [6a89bc29]
  • Updated dependencies [fd2f6de0]
  • Updated dependencies [6792bc44]
  • Updated dependencies [96d1ff9c]
  • Updated dependencies [422dbfcd]
  • Updated dependencies [9ff90d4b]

8.0.1

Patch Changes

  • efa9e8f4: Exporting / renaming props for Storybook

8.0.0

Major Changes

Patch Changes

  • Updated dependencies [5f28fce1]
  • Updated dependencies [c48e943e]

7.0.0

Major Changes

  • b4c5700: Updates Radio Box Group according to visual brand refresh

6.1.5

Patch Changes

  • d661688: Removes flicker when clicking on a RadioBox
  • Updated dependencies [d661688]
  • Updated dependencies [d661688]

6.1.4

Patch Changes

6.1.3

Patch Changes

  • 1e849937: Fixes an issue where the id attribute for all Radio Boxes in a group would be set to 'radio-box-null', resulting in several unselectable radio boxes

6.1.2

Patch Changes

6.1.1

Patch Changes

  • d0a2e4e5: Fixes issue where not all RadioBox components were being properly filled

6.1.0

Minor Changes

  • 4b6a2643: Allow for RadioBox elements to be rendered as non-direct descendants of a RadioBoxGroup (either inside another element, or rendered by a wrapper component)

6.0.0

Patch Changes

5.0.3

Patch Changes

5.0.2

Patch Changes

  • a5c1328d: Updates border-radius on RadioBox components from 2px to 4px.

5.0.1

Patch Changes

  • 6e26200a: Small correction to border radius of the interaction ring for hover and focused states

5.0.0

Major Changes

  • 8b0ea602: Form-compatible components now display more visually consistent hover and focus states

Patch Changes

4.1.0

Minor Changes

  • 627333c2: Size is now a named export from the package

Patch Changes

  • ee7923d3: Changes how we extend the types of HTMLElements, and standardizes how we document this across readmes
  • Updated dependencies [ee7923d3]

4.0.1

Patch Changes

4.0.0

Major Changes

  • 0267bfd2: The underlying structure of distributed module definition files have changed and now have official support for ES modules. Module definition files are now generated using Rollup instead of Webpack. This should not affect functionality, but some thorough testing and caution should be exercised when upgrading.

Patch Changes

3.0.3

Patch Changes

3.0.2

Patch Changes

  • 6aadc0b: Make id generation deterministic using IdAllocator.create class. This improves the SSR compatibility of these components.
  • Updated dependencies [6aadc0b]

3.0.1

Patch Changes

3.0.0

Major Changes

  • 1d24966: Makes @leafygreen-ui/leafygreen-provider a peer dependency to ensure that components use hooks from the same version of the provider as what's installed.

2.0.0

Major Changes

  • 464c09d: Introduces SSR compatibility though a change to our build process and files

Minor Changes

  • 5c9202d: Introduces support for LeafyGreenProvider for improved focus state management

Patch Changes

1.3.1

Patch Changes

  • ef114e6: Adds group role to RadioBoxGroup container div and supplied a value aria-label attribute, in order to ensure component is accessible.

1.3.0

Minor Changes

  • 12bbb95: Updates RadioBoxGroup component to new color palette