Themeable design system for the SEEK Group
MIT License
Bot releases are hidden (Show)
Published by seek-oss-ci about 5 years ago
inline
in favour of inferring this from the context of use. Nesting an icon inside a <Text>
or <Heading>
component will determine its size and position โ no longer requiring the inline
modifier or allowing a size
that differs from the parent text.inline
removalAn example migration, ie. determined as inline based on it being a child of <Text>
or <Heading>
.
<Text>
- An inline icon <Icon inline /> amongst text
+ An inline icon <Icon /> amongst text
</Text>
size
inferenceAn example migration, ie. determined as being size="large"
based on it being a child of <Text size="large">
.
<Text size="large">
- An large icon <Icon size="large" /> amongst large text
+ An large icon <Icon /> amongst large text
</Text>
Note: Having different sizes is no longer permitted. Eg:
<Text size="large">
- An large icon <Icon size="small" /> amongst large text
+ An large icon <Icon /> amongst large text
</Text>
This also adds support for icons used inside of <Heading>
components, eg:
<Heading level="2">
<Icon /> Title
</Heading>
debugIdent
to textColorForBackground
util to ease debugging.display="flex"
around the icon inside Alert
Published by seek-oss-ci over 5 years ago