Skip to content

v2.1.0

Choose a tag to compare

@moust moust released this 18 Sep 08:56
· 25 commits to master since this release
20ff876

Added

  • Support for social providers configured outside the built-in list, with a per-provider buttonLabel option

Changed

  • theme.socialButton colours now apply, falling back to the provider's brand colour
  • Button colours follow primaryColor: contrast-derived text, a darker hover shade, and outline / ghost
    variants that no longer reuse the filled-button tokens
  • The WebAuthn registered-devices list is rebuilt on the shared Item primitives

Deprecated

  • theme.socialButton.focusBoxShadow, now that the focus ring follows the provider's brand colour

Removed

  • acceptTos from the login view and social buttons props, and lightBackgroundColor from BaseTheme
  • height from the theme options of input, button and socialButton — it is computed from fontSize,
    lineHeight, paddingY and borderWidth, and setting it never had any effect
  • theme.socialButton.textVisible, which only ever mirrored !inline. inline is now the single
    switch: an inline row renders icon-only buttons, a stacked column renders labelled ones

Fixed

  • Theme options that silently did nothing: fontSize, boxShadow, button border colours,
    link.hoverColor, passwordStrengthValidator
  • A boxShadow of none no longer removes the keyboard focus ring
  • The widget no longer fails on an unknown social provider or an unparseable theme colour
  • Phone number input: selecting another country no longer clears the number already entered — the
    national number is kept, re-formatted and re-validated against the selected country
  • Phone number input: entering a number with an international prefix now selects the matching
    country in the country select, without overriding an explicit selection that shares the same
    calling code
  • Phone number input: the country select shows its chevron indicator again
  • Password strength score colors can be customized with theme options
  • Password strength gauge: five bars instead of four, one per score, so that the weakest score fills a
    single bar and passwordStrengthValidator.color0 is applied — it previously had no effect
  • Password rules: a satisfied rule is shown in the success colour instead of the primary color
  • The identifier field keeps what was typed when it is not a phone number, instead of clearing it