Jan 24, 2024
  • Rating: Add weight support

    Provide a weight prop to customise the weight of the text rating alongside the stars.

    EXAMPLE USAGE:

    <Rating rating={3} weight="strong" />
Nov 9, 2022
  • Support data attribute boolean values

    The data attribute map now supports boolean values. This provides an improvement for the developer experience, no longer having to convert values to strings explicitly.

    EXAMPLE USAGE:

    <Component
      data={{
        'custom-attribute': true,
      }}
    />
    // => <div data-custom-attribute="true" />
Oct 27, 2022
  • Rating: Only fill star for scores .75 and above

    A star is only filled when the score is .75 and above. Fixes an issue where all scores .5 or above are shown as half filled stars.

    EXAMPLE USAGE: Now when a rating reaches .75 it will round up to a full star.

    <Rating rating={3.75} /> // 4 filled
Jun 27, 2022
  • Rating: Add variant prop and deprecate showTextRating

    Provide the variant prop to allow customising the appearance. This supports the new minimal appearance, which presents a single star alongside the text rating.

    Also adding the starsOnly variant as a replacement for the now deprecated showTextRating={false}.

    EXAMPLE USAGE:

    <Rating rating={3.7} variant="minimal" />

    MIGRATION GUIDE:

    The showTextRating prop is now deprecated. If you were using this previously, please migrate to the new variant prop using starsOnly.

    <Rating
      rating={3.7}
    - showTextRating={false}
    + variant="starsOnly"
    />
May 19, 2021
  • Add support for data attribute maps on all components.

    EXAMPLE USAGE:

    <Alert
      data={{
        testId: 'message'
      }}
    />
    
    // => <div data-testId="message" />