braid-design-system

Themeable design system for the SEEK Group

MIT License

Downloads
20.9K
Stars
1.5K
Committers
33

Bot releases are hidden (Show)

braid-design-system - v22.2.1

Published by seek-oss-ci over 4 years ago

22.2.1 (2020-02-25)

Bug Fixes

  • icons: Inherit parent tone when nesting icons inside links (#503) (bc358aa)
braid-design-system - v22.2.0

Published by seek-oss-ci over 4 years ago

22.2.0 (2020-02-24)

Features

  • icons: New icons plus some updated to existing (#501) (2df382a)
braid-design-system - v22.1.1

Published by seek-oss-ci over 4 years ago

22.1.1 (2020-02-23)

Bug Fixes

braid-design-system - v22.1.0

Published by seek-oss-ci over 4 years ago

22.1.0 (2020-02-21)

Features

braid-design-system - v22.0.1

Published by seek-oss-ci over 4 years ago

22.0.1 (2020-02-19)

Bug Fixes

  • Resolve class mismatch between build & client (#497) (08e76a7)
braid-design-system - v22.0.0

Published by seek-oss-ci over 4 years ago

22.0.0 (2020-02-19)

Features

  • Update Alert design, add Notice and introduce caution tone (#496) (aa60d06)

💥 Breaking Changes

Alert no longer has a weight property. The strong treatment was considered too heavy and was most often used to avoid contrast issues when used outside of a Card, this has instead been addressed through a design update.

✨ New Features

🎨 Caution Tone

Introduces the caution tone as a mechanism for making the user aware something is happening or mid-way through a process. Could used to highlight a risk or an item that needs to be acted upon.

⚛️ Notice

Better facilitates in-flow messaging where usage of an Alert would be considered too visually dominant or distracting. Supports a subset of tones, namely promote, info, positive and critical, seen below:

Migration Guide

⚛️ Alert

If you're setting weight="strong", you should remove it.

If you're not setting weight="strong" (the default), please validate the design suits your use case. You might find that for in-flow messaging, eg. amongst content within a Card, you might prefer the new Notice component.

braid-design-system - v21.6.0

Published by seek-oss-ci over 4 years ago

21.6.0 (2020-02-19)

Features

  • icons: Support lowercase alignment via alignY="lowercase" (#495) (b677107)
braid-design-system - v21.5.2

Published by seek-oss-ci over 4 years ago

21.5.2 (2020-02-18)

Bug Fixes

  • TextLink: Visually lower underline when permanently visible (#494) (b0a1f60)
braid-design-system - v21.5.1

Published by seek-oss-ci over 4 years ago

21.5.1 (2020-02-17)

Bug Fixes

  • Textarea: Handle edge case highlight ranges (#492) (140dabf)
braid-design-system - v21.5.0

Published by seek-oss-ci over 4 years ago

21.5.0 (2020-02-14)

Features

braid-design-system - v21.4.2

Published by seek-oss-ci over 4 years ago

21.4.2 (2020-02-13)

Bug Fixes

  • Textarea: Better scroll support for highlighted ranges (#490) (53ab6aa)
braid-design-system - v21.4.1

Published by seek-oss-ci over 4 years ago

21.4.1 (2020-02-12)

Bug Fixes

  • Badge: Improve children validation, only run at dev time (#489) (b950cd8)
braid-design-system - v21.4.0

Published by seek-oss-ci over 4 years ago

21.4.0 (2020-02-12)

Features

  • Textarea: Support highlighting ranges (#488) (06396cb)
braid-design-system - v21.3.2

Published by seek-oss-ci over 4 years ago

21.3.2 (2020-02-07)

Bug Fixes

  • Text: Support secondary text on dark backgrounds (#478) (6ed2b90)
braid-design-system - v21.3.1

Published by seek-oss-ci over 4 years ago

21.3.1 (2020-02-06)

Bug Fixes

  • Textarea: Show character count correctly (#485) (f489c06)
braid-design-system - v21.3.0

Published by seek-oss-ci over 4 years ago

21.3.0 (2020-02-04)

Features

braid-design-system - v21.2.1

Published by seek-oss-ci over 4 years ago

21.2.1 (2020-01-31)

Bug Fixes

braid-design-system - v21.2.0

Published by seek-oss-ci over 4 years ago

21.2.0 (2020-01-31)

Features

braid-design-system - v21.1.0

Published by seek-oss-ci over 4 years ago

21.1.0 (2020-01-30)

Features

braid-design-system - v21.0.0

Published by seek-oss-ci over 4 years ago

21.0.0 (2020-01-29)

Bug Fixes

  • TextLink,TextLinkRenderer: Remove surrounding space, add hitArea prop (#472) (6bf13bc)

BREAKING CHANGES

  • Block-level TextLink/TestLinkRenderer components no longer occupy full touchable height in the document flow. You will need to add a hitArea="large" prop and reintroduce white space via layout components.
  • All TextLink/TestLinkRenderer components must now be nested within a Text component.

Description

When TextLink is mentioned below, it refers to both the TextLink and TextLinkRenderer components.

Previously Braid had two different TextLink implementations, depending on whether it was nested within a Text component or not. The thinking was, TextLinks that are not part of a sentence should reserve surrounding white space to ensure that they satisfied a minimum touchable size. The documentation referred to these as "block links".

Unfortunately, this clashes with our layout philosophy of first-class white space via layout components. It was also a confusing API for consumers due to its implicit nature.

This PR is removing the concept of block links entirely, in favour of an optional hitArea prop that can increase the hit area of the link without adding additional whitespace to the layout.

To help debug this in development mode, you can add a data-braid-debug attribute anywhere in the DOM tree to visualise the hit areas nested within it.

Note: Inline links (i.e. links nested within a Text component) are completely unaffected by this change.

Migration Guide

-<TextLink href="...">
-  <Text>Block link</Text>
-</TextLink>

+<Text>
+  <TextLink hitArea="large" href="...">Block link</TextLink>
+</Text>

You may also need to reintroduce white space. This can be done via Braid's layout components.

In simple cases where block links only contains 1–2 words, you can wrap them in a vertically centered touchable Box:

<Box height="touchable" display="flex" alignItems="center">
  <Text>
    <TextLink hitArea="large" href="...">Block link</TextLink>
  </Text>
</Box>

As always, if you're finding this migration difficult, please reach out so we can give you a hand.

Package Rankings
Top 2.35% on Npmjs.org
Badges
Extracted from project README
npm
Related Projects