Skip to content

Latest commit

 

History

History
549 lines (375 loc) · 14.1 KB

CHANGELOG.md

File metadata and controls

549 lines (375 loc) · 14.1 KB

@leafygreen-ui/toggle

10.1.2

Patch Changes

  • e7bc12814: Adds more thorough test coverage for disabled inputs

10.1.1

Patch Changes

  • 8adadc89: Fixes a bug that prevented packages from rendering in a server-side environment
  • Updated dependencies [8adadc89]

10.1.0

Minor Changes

  • c3906f78: - Extends DarkModeProps from @leafygreen-ui/lib
    • Exports getTestUtils, a util to reliably interact with LG Toggle in a product test suite. For more details, check out the README LG-4035
    • Exports the constant, LGIDS_TOGGLE, which stores data-lgid values.

Patch Changes

10.0.20

Patch Changes

10.0.19

Patch Changes

10.0.18

Patch Changes

  • e487fb24: Renames story files from .story.tsx to .stories.tsx
  • Updated dependencies [5ee54143]
  • Updated dependencies [e487fb24]

10.0.17

Patch Changes

10.0.16

Patch Changes

10.0.15

Patch Changes

10.0.14

Patch Changes

10.0.13

Patch Changes

10.0.12

Patch Changes

10.0.11

Patch Changes

  • 76161cf0: Minor fixes to stories
  • 76161cf0: Updates stories for Chromatic testing
  • Updated dependencies [76161cf0]
  • Updated dependencies [76161cf0]
  • Updated dependencies [95f5107a]
  • Updated dependencies [76161cf0]
  • Updated dependencies [76161cf0]

10.0.10

Patch Changes

10.0.9

Patch Changes

  • 601faca8b: Fixes bug such that xsmall toggle buttons now render properly in their active state

10.0.8

Patch Changes

  • 4be31ce3c: Changes component from 26px to 24px width to be in line with Figma spec
  • Updated dependencies [73cbbd02c]
  • Updated dependencies [32b3d3146]
  • Updated dependencies [83fc5b31b]
  • Updated dependencies [8ece56980]

10.0.7

Patch Changes

10.0.6

Patch Changes

10.0.5

Patch Changes

10.0.4

Patch Changes

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

10.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]

10.0.2

Patch Changes

  • dbcf23db0: Spreads className prop on root button element

10.0.1

Patch Changes

  • ae5421cf6: Updates components to use internal transition tokens
  • Updated dependencies [ae5421cf6]
  • Updated dependencies [4b4c2d27d]
  • Updated dependencies [1a335d0b2]

10.0.0

Major Changes

  • 30207122: Updates Toggle for dark mode brand refresh

Patch Changes

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

8.0.6

Patch Changes

8.0.5

Patch Changes

8.0.4

Patch Changes

8.0.3

Patch Changes

8.0.2

Patch Changes

8.0.1

Patch Changes

8.0.0

Major Changes

  • 532986a: Updates toggle styles in line with visual brand refresh.

Patch Changes

7.0.5

Patch Changes

  • 70f3c2c: Add type="button" to Toggle button element

7.0.4

Patch Changes

7.0.3

Patch Changes

7.0.2

Patch Changes

7.0.1

Patch Changes

  • d6829357: Fixes implementation of Toggle to call onChange with the proper checked value depending on whether or not the component is controlled.

7.0.0

Major Changes

  • 7df69248: Refactors the Toggle component to resolve bugs, improve maintainability, and improve accessibility for sighted and non-sighted users.

    • Refactors the internal DOM structure of the component to be as accessible as possible, and uses the appropriate role.
    • Restructures how the styles are structured in the component to improve maintainability.
    • Slightly increases contrast of the "ON" and "OFF" labels in the default size to meet WCAG AA contrast guidelines.
    • Hides the "ON" and "OFF" labels for screen readers so that only the current state of the Toggle is read.
    • Enforces use of aria-label and aria-labelledby so that Toggles always have screen reader accessible text associated with them.
    • Fixes a bug with the rendering of the focus state on Windows machines.
    • Uses the LeafyGreen Provider to conditionally show the focus state based on how the user is interacting with the page.

    Please read our upgrade guide for more information on these changes.

Patch Changes

6.0.0

Major Changes

  • 8b0ea602: Removed interactionRingSize prop. Previously the interaction ring could cause the toggle to overflow its container. Since the interaction ring is now based on box-shadows, this should no longer be necessary.
  • 8b0ea602: Form-compatible components now display more visually consistent hover and focus states

Patch Changes

5.0.2

Patch Changes

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

5.0.1

Patch Changes

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

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

4.1.1

Patch Changes

  • 6e210765: The tooltip's notch now appears at more appropriate positions for smaller trigger elements.

4.1.0

Minor Changes

  • 24af55cc: Addresses issue where Toggle caused scrollbars to appear in certain environments. This should no longer happen by default; however, if the focus state still causes the scrollbars to appear, this version adds an export, interactionRingSize, which is a value that can be applied to the margin of the container wrapping Toggle, and in turn prevent the focus state from overflowing.

4.0.0

Major Changes

  • b863e502: Refactors Toggle from class-based to functional component, and deprecates variant in favor of new darkMode prop to control whether or not the component appears in dark mode

3.0.4

Patch Changes

3.0.3

Patch Changes

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

3.0.2

Patch Changes

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

3.0.1

Patch Changes

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

3.0.0

Major Changes

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

Patch Changes

2.1.8

Patch Changes

  • 0868af7: Updates Toggle to new utilize new palette

2.1.7

Patch Changes

  • 4de039a: Further accessibility updates to make component compliant with a11y standards