Skip to content

@reapit/elements_v5.0.0-beta.35

Pre-release
Pre-release
Compare
Choose a tag to compare
@kurtdoherty kurtdoherty released this 03 Jul 12:43
· 44 commits to main since this release
de7d2ae

Notable Changes

🎉 New Components

💔 Breaking Changes

Global CSS resets

Previously, the Elements stylesheet, @reapit/elements/styles.css, included a collection CSS reset styles that were applied globally to all elements based on their tag name. These have now been removed. If your UI relies on these resets, they are available via a separate stylesheet, @reapit/elements/reset.css, that you can import/include prior to the main Elements stylesheet.

Importantly, the CSS reset no longer applies -webkit-font-smoothing: antialiasing or -moz-osx-font-smoothing: grayscale. See Stop fixing font smoothing for an explanation behind this decision.

Components

Many Elements v4 components have been grouped under a new "Deprecated" section in the Storybook side bar. Consumers of these components should consider them to be implicitly deprecated. Explicit deprecation and renaming will come in a future beta version. The URL for these components' documentation will have changed as a result of this relocation.

The following components have either been deprecated and renamed (including their related classes in the Elements stylesheet), or removed:

  • Accordion, now DeprecatedAccordion.
  • Button, now DeprecatedButton.
  • DrawCloseIcon has been removed. It's still available via <DeprecatedIcon icon="drawClose" />.

The following components have received breaking changes to their prop interfaces:

  • Badge: variant is now colour and isReversed is now variant="reversed".
  • Features: aria-label has been replaced with label.
  • Tag: no longer supports an as prop.

What's Changed

Full Changelog: https://github.com/reapit/elements/compare/@reapit/elements_v5.0.0-beta.34...@reapit/elements_v5.0.0-beta.35