- Use PropTypes from prop-types package
- (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
- To migrate to v6.0.0, change your button imports as follows:
- Restructure tests
- Add condensed property
- Add live examples
- Added support for icons in
<Button>
,<SecondaryButton>
and<TertiaryButton>
. - Modified
ShortcutButton
to pass the<ChevronIcon>
as arightIcon
prop to<Button>
- Bugfix: ShortcutButton used wrong css-class on its icon.
- Upgrade eslint and fix linting errors.
- Add props drop-through to underlying
<Button>
component
- Shortcut button includes the ChevronIcon by default (FFE-115).
- Added back button
- Added support for autoFocus (native React prop)
- Fix truly disabling button while
isLoading
(CSSpointer-events:none
was an obscure and inefficient way to achieve this) isLoading
will also set the attributearia-busy=true
on the button
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
- (BREAKING): Button's
type
prop has been renamed tobuttonType
. 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 withtype="button"
ortype="reset"
when needed - now the<*Button />
components behave like regular HTML buttons. The default is stilltype="submit"
. - Allow no
onClick
handler. Since the default type issubmit
, the default click handler will trigger asubmit
event, which can be handled elsewhere, rendering anonClick
handler useless.
- Fix 'isTabbable' support: buttons are now tabbable by default if 'isTabbable' isn't specified.
- Buttons now accepts className from prop
- Buttons now accepts inline styles as a
style
prop
- Added tertiary button
- Deprecated the 'FFE' prefix in all button names.
- Add 'isTabbable' support.
- Bump
ffe-core
dependency to 6.x.
- Add
disableButton
support.
- First version.