Releases: primer/brand
v0.3.0
Minor Changes
-
c8609a8
Thanks @rezrah! - added an FAQ component, which displays a list of questions and answers relating to a particular subject. -
#45
2fb6924
Thanks @rezrah! - > WarningThis is a breaking change, but as the library is a pre-v1 release we are publishing this update as a
minor
change.
Please read the following instructions carefully before updating:Updated references for "left" and "right" to "start" and "end"
For improved i18n support and closer alignment with our Figma naming conventions, we have updated the references for "left" and "right" to "start" and "end" respectively in
Hero
andRiver
components.- <River align="left"> - <River align="right"> + <River align="start"> + <River align="end">
v0.2.1
v0.2.0
Minor Changes
-
#33
662fcfc
Thanks @rezrah! - - AddsRiver
component- Renames
LinkButton
toButton
⚠️ (see below) - Button supports polymorphism and can be used
as
eithera
orbutton
River
NEW Component ✨
Before After ❌ // import {River} from "@primer/react-brand"; <River> <River.Visual> <img src="https://via.placeholder.com/600x400/f5f5f5/f5f5f5.png" alt="placeholder, blank area with an off-white background color" /> </River.Visual> <River.Content> <Heading>Heading</Heading> <Text> Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis felis nam pulvinar risus elementum. </Text> <Link href="#">Call to action</Link> </River.Content> </River>
See more examples in our documentation.
https://primer.style/react-brand/components/RiverLinkButton
Warning
The changes below should be considered a breaking change for anyone relying onLinkButton
, but as we are shipping a pre-v1 library, this has been marked as aminor
release rather thanmajor
. Please remember to update your usage per the below example.Before After //import { LinkButton } from '@primer/react-brand'; <LinkButton href="#">Sign up</LinkButton>
//import { Button } from '@primer/react-brand'; <Button as="a" href="#"> Sign up </Button>
❌
//import { Button } from '@primer/react-brand'; <Button onClick={handler}>Sign Up</Button>
- Renames
v0.1.0
Minor Changes
- #19
3b22e9e
Thanks @colebemis! - Addsize
prop toHero
component
Patch Changes
-
#23
77abf53
Thanks @rezrah! - add Text and Heading components -
#29
144c7d7
Thanks @rezrah! - Removedgh-variables.css
from package as Brand variables are now surfaced in main.cssTo upgrade:
-
Remove
import "@primer/react-brand/lib/css/gh-variables.css"
-
Add
import "@primer/react-brand/lib/css/main.css"
-
-
#21
ab06cce
Thanks @rezrah! - Remove fixed background color fromHero
to allow underlying customisation to be surfaced. -
#27
ca2d300
Thanks @rezrah! - Updated Hero text appearance- updated Hero description text size from
500
to400
- updated button alignment to not stretch on mobile viewports
- removed
size
prop. Now only one responsive size available.
- updated Hero description text size from
v0.0.3
v0.0.2
Patch Changes
- #2
ab01a8a
Thanks @colebemis! - Initialize releases with changesets