Skip to content

Latest commit

 

History

History
670 lines (457 loc) · 17 KB

CHANGELOG.md

File metadata and controls

670 lines (457 loc) · 17 KB

@leafygreen-ui/checkbox

13.1.2

Patch Changes

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

13.1.1

Patch Changes

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

13.1.0

Minor Changes

  • 1ec45a7e: - Exports getTestUtils, a util to reliably interact with LG Checkbox in a product test suite. For more details, check out the README
    • Exports the constant, LGIDS_CHECKBOX, which stores data-lgid values.
    • Leverages the 'aria-label' prop when passed

Patch Changes

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.1.1

Patch Changes

12.1.0

Minor Changes

  • be92f17c: Checkbox component now responds to baseFontSize prop

Patch Changes

12.0.20

Patch Changes

12.0.19

Patch Changes

12.0.18

Patch Changes

  • Updated dependencies [a5770c15]
  • Updated dependencies [c89d17a4]

12.0.17

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

  • d2ce54e2f: Updates story files for Storybook 7.x
  • d2ce54e2f: Exports primary component props
  • Updated dependencies [d2ce54e2f]
  • Updated dependencies [75099c60b]
  • Updated dependencies [d2ce54e2f]
  • Updated dependencies [0cd471676]

12.0.10

Patch Changes

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

12.0.9

Patch Changes

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

12.0.8

Patch Changes

12.0.7

Patch Changes

12.0.6

Patch Changes

12.0.5

Patch Changes

  • cccc1cebe: Removes useUsingKeyboard from component in favor of &:focus-visible

12.0.4

Patch Changes

  • b24b21462: Storybook: Updates story files to be on par with existing mongodb.design examples
  • Updated dependencies [741cdd408]
  • Updated dependencies [866144167]
  • Updated dependencies [c82ed35d5]
  • Updated dependencies [b24b21462]

12.0.3

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.2

Patch Changes

  • 38181cc1d: Update to consume darkMode from useDarkMode. Some components were setting darkMode = false as a default which would override the default value provided by the LeafyGreenProvider.

12.0.1

Patch Changes

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

12.0.0

Patch Changes

11.0.1

Patch Changes

11.0.0

Patch Changes

10.1.1

Patch Changes

10.1.0

Minor Changes

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

Patch Changes

10.0.4

Patch Changes

  • 6e1c365e: Add disabled cursor to label text when disabled

10.0.3

Patch Changes

10.0.2

Patch Changes

  • 3b6cf88b: Update darkMode disabled text color to match figma designs

10.0.1

Patch Changes

  • 19a62173: Adding some missing dependencies,@leafygreen-ui/a11y and @leafygreen-ui/emotion

10.0.0

Major Changes

  • 9dafe83a: Updates Checkbox Dark Mode for brand refresh

Minor Changes

  • bac1e809: Restores bold prop. If left undefined this prop will default to true if a description is provided, otherwise defaults to false

Patch Changes

  • bac1e809: Improves ripple animation on checkbox click
  • Updated dependencies [65c86281]

9.0.0

Patch Changes

8.0.3

Patch Changes

  • 1356d50d: Fix to center dark mode checkbox regardless of lineheight and fix to center indeterminate checkbox in light mode.
  • fd2f6de0: Updates to TSDocs, PropTypes, and Storybook files
  • 96d1ff9c: Updates to propTypes, TSDocs, and Storybook controls
  • Updated dependencies [6792bc44]
  • Updated dependencies [96d1ff9c]
  • Updated dependencies [422dbfcd]

8.0.2

Patch Changes

  • e630a889: Add react-transition-group as a dependency
  • 6c12e85a: Update the alignment of the label when there are multiple lines

8.0.1

Patch Changes

  • 1fb8ab18: Creates a new stacking context for the Checkbox component
  • Updated dependencies [909209c4]

8.0.0

Major Changes

  • e13d2487: Moving leafygreen-provider to peerDependencies.
  • Updated dependencies [5f28fce1]

Patch Changes

7.0.1

Patch Changes

  • Updated dependencies [ba4aab15]
  • Updated dependencies [2cf1bc4a]
  • Updated dependencies [679b6239]
  • Updated dependencies [f3aad7e2]

7.0.0

Major Changes

  • acd6919: Updates checkbox for visual brand refresh
    • Updates default animate value to true
    • Adds description prop
    • Adds support for aria-label and aria-labelledby
    • Currently disregarding bold prop, and the label will always be bold. This will be updated in a future update to the Label component

Patch Changes

  • Updated dependencies [acd6919]
  • Updated dependencies [acd6919]

6.0.6

Patch Changes

6.0.5

Patch Changes

  • bed50770: Fixes broken Checkbox logic, where any value supplied to the indeterminate prop was overwritting checked prop

6.0.4

Patch Changes

6.0.3

Patch Changes

6.0.2

Patch Changes

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

6.0.1

Patch Changes

  • dac3f38b: Fixes a publishing error that prevented UMD modules from being distributed
  • Updated dependencies [dac3f38b]

6.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

5.0.0

Major Changes

  • 02ee0c05: Deprecates variant prop and adds darkMode prop to determine whether or not Checkbox appears in dark mode.

4.1.1

Patch Changes

  • 463a338: Fixes 'aria-checked' value when Checkbox is indeterminate such that the value is mixed rather than false per WAI-ARIA spec

4.1.0

Minor Changes

  • 7605c17: Add prop to disable animations

4.0.4

Patch Changes

4.0.3

Patch Changes

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

4.0.2

Patch Changes

  • Updated dependencies [2eba736]
  • Updated dependencies [1aa26ee]
  • Updated dependencies [a571361]

4.0.1

Patch Changes

  • 2a03117: Upgrades @testing-library/react to v10 and revises test suites to conform with new standards

4.0.0

Major Changes

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

Patch Changes

3.2.1

Patch Changes

  • 4de039a: Makes component compliant with a11y standards

3.2.0

Minor Changes

  • 8f568bf: Adds a disabled + checked state to checkbox.

Patch Changes

  • 55f904f: Positions input inside the boundary of parent label