Skip to content

Release 6.2.0

Compare
Choose a tag to compare
@jsamr jsamr released this 23 Oct 17:21
· 41 commits to master since this release
82c3efa

6.2.0 (2021-10-23)

This release is focused on accessibility! Moreover, it empowers model-based custom rendering which can now define props passed to Text and View elements of renderers. Check out our blog post for a full dive into this release features.

Bug Fixes

  • inaccurate typing for HTMLElementModelRecord (bd5dfa6)
  • pass borderless prop to custom GenericPressable (f06af7a)
  • never assume the definition of __DEV__ in the global scope (f9bb9e9)
  • a11y: anchors should not be set with a11y role "link" when empty href (dd988fc)
  • a11y: anchors are not accessible anymore when href is empty or absent (4e1f2f4)

Features

  • new getNativePropsForTnode util method (d983d0d)
  • css: support user-select CSS property (8442b2f)
  • a11y: support aria-label and aria-role HTML attributes (2b27f00)
  • a11y: add accessibilityRole="header" to headings elements (h1...h6) (1c79bc3)
  • new reactNativeProps and getReactNativeProps in HTMLElementModel, this little change gives model-based custom rendering considerably more leverage. (4ee1646)
  • deprecate getUADerivedStyleFromAttributes in favor of getMixedUAStyles in HTMLElementModel, which allows access to the underlying TNode and again empowers model-based custom rendering.
  • a11y: whatwg-compliant accessibility for images (7fc2907)
  • a11y: custom renderers passed onPress prop now have a11y roles (11723f0)
  • a11y: support aria-role="search" and aria-role="presentation" attributes (c552fe4)
  • allow HTMLElementModel.extend to take a merge function (9b3a007)
  • support onPress from element models native props (7dc5577)