Skip to content

v0.2.0

Choose a tag to compare

@rafgraph rafgraph released this 21 Nov 17:57
· 241 commits to main since this release
  • Implement input tracker and notifier to fix several bugs caused by the browser not firing the necessary events.
  • Remove onMouseClick, onTap and onEnterKey callbacks in favor of passing in a second argument with the click type to the onClick callback, e.g. onClick={(event, clickType) => {...}}, where clickType is one of 'mouseClick', 'tapClick' or 'keyClick'.
  • Remove individual state onEnter and onLeave callbacks (use onStateChange instead).
  • Remove focusFromOnly option from the focusFrom API.
  • Remove useBrowserWebkitTapHighlightColor option in favor of letting the browser fully manage what it considers to be a click from a touch interaction when there's no active and touchActive prop.
  • Add touchActiveTapOnly option to only remain in the touchActive state while a tap is possible.
  • Add stylePriority option to specify what iState styles take precedence over focus state styles when merged.
  • Add focusToggleOff option to turn off focus toggling.
  • Add role="button" if there is an onClick prop without a role prop, and it's not clear what the role of the element is (i.e. it's not for user input, a link, or an area tag).