Skip to content

Latest commit

 

History

History
177 lines (123 loc) · 4.29 KB

CHANGELOG.md

File metadata and controls

177 lines (123 loc) · 4.29 KB

@leafygreen-ui/info-sprinkle

4.0.3

Patch Changes

  • 78efdc99a: The trigger associated with the InfoSprinkle component was previously a <button> element using the default type="submit". When an InfoSprinkle instance was used in a <form> element, clicking would unexpectedly submit form data to the server. The <button> element now uses type="button" to prevent this behavior.

4.0.2

Patch Changes

4.0.1

Patch Changes

4.0.0

Major Changes

  • 274d7e1a7: Removes prop-types from LeafyGreen UI

Patch Changes

3.0.0

Major Changes

  • 04bb887c0: LG-4121: InfoSprinkle renders tooltip in the top layer using popover API. As a result, the following props are removed:

    • popoverZIndex
    • portalClassName
    • portalContainer
    • portalRef
    • scrollContainer
    • usePortal

    Additional changes include:

    • Deprecates and removes justify="fit". Instead, use justify="middle"
    • Opens tooltip immediately on hover instead of default 500ms delay

    Migration guide

    Use popover-v12 codemod for migration assistance.

    Old
    <InfoSprinkle popoverZIndex={9999} usePortal={false} />
    <InfoSprinkle portalClassName="portal-class" usePortal />
    New
    <InfoSprinkle />
    <InfoSprinkle />

Patch Changes

2.1.0

Minor Changes

  • 6b8ad3d42: Updates children type to accept React.ReactNode rather than just string

2.0.0

Major Changes

  • bbd56ee88: - Adds triggerProps prop. These props are passed to the trigger element.
      triggerProps={{
        onMouseDown: () => {},
        onMouseOver: () => {},
        'aria-label': 'aria-label',
      }}>
    • Removes triggerAriaLabel prop. Instead you can pass aria-label to triggerProps.
    • Internally changes the trigger from a span with role="button to a button.

Patch Changes

  • Updated dependencies [2f05b61ab]
  • Updated dependencies [eb80fd3cb]

1.0.5

Patch Changes

  • c86227a6: Updates storybook for .design

1.0.4

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

  • 954645a5: First major release of InfoSprinkle