Skip to content

Latest commit

 

History

History
96 lines (64 loc) · 2.55 KB

CHANGELOG.md

File metadata and controls

96 lines (64 loc) · 2.55 KB

Changelog

v6.0.1

  • Use PropTypes from prop-types package

v6.0.0

  • (BREAKING) Remove button names with 'FFE' prefix that were deprecated in v2.1.0
    • To migrate to v6.0.0, change your button imports as follows:
      • FFEActionButton -> ActionButton
      • FFEButton -> Button
      • FFEPrimaryButton -> PrimaryButton
      • FFESecondaryButton -> SecondaryButton
      • FFEShortcutButton -> ShortcutButton
  • Restructure tests
  • Add condensed property
  • Add live examples

v5.2.0

  • Added support for icons in <Button>, <SecondaryButton> and <TertiaryButton>.
  • Modified ShortcutButton to pass the <ChevronIcon> as a rightIcon prop to <Button>

v5.1.2

  • Bugfix: ShortcutButton used wrong css-class on its icon.

v5.1.1

  • Upgrade eslint and fix linting errors.

v5.1.0

  • Add props drop-through to underlying <Button> component

v5.0.0

  • Shortcut button includes the ChevronIcon by default (FFE-115).

v4.3.0

  • Added back button

v4.2.0

  • Added support for autoFocus (native React prop)

v4.1.0

  • Fix truly disabling button while isLoading (CSS pointer-events:none was an obscure and inefficient way to achieve this)
  • isLoading will also set the attribute aria-busy=true on the button

v4.0.0

Package has been renamed to ffe-buttons-react (plural). Package ffe-button-react is now deprecated.

ffe-buttons-react introduces a new peerDependency in ffe-buttons. It also bumps the peerDependency on ffe-core to ^8.0.1

v3.0.0

  • (BREAKING): Button's type prop has been renamed to buttonType. This change will only be breaking for direct consumers of the <Button /> component - not its specialized versions <PrimaryButton />, <SecondaryButton /> etc.
  • Allow overriding a button's type prop with type="button" or type="reset" when needed - now the <*Button /> components behave like regular HTML buttons. The default is still type="submit".
  • Allow no onClick handler. Since the default type is submit, the default click handler will trigger a submit event, which can be handled elsewhere, rendering an onClick handler useless.

v2.4.1

  • Fix 'isTabbable' support: buttons are now tabbable by default if 'isTabbable' isn't specified.

v2.4.0

  • Buttons now accepts className from prop

v2.3.0

  • Buttons now accepts inline styles as a style prop

v2.2.0

  • Added tertiary button

v2.1.0

  • Deprecated the 'FFE' prefix in all button names.
  • Add 'isTabbable' support.

v2.0.0

  • Bump ffe-core dependency to 6.x.

v1.1.0

  • Add disableButton support.

v1.0.0

  • First version.