Releases: primer/brand
@primer/[email protected]
Patch Changes
-
#976
4cdb794
Thanks @danielguillan! - Added a new350
step to the typographic scale.E.g.
.Some-text { font-weight: var(--brand-text-weight-350); font-size: var(--brand-text-size-350); line-height: var(--brand-text-lineHeight-350); letter-spacing: var(--brand-text-letterSpacing-350); }
-
#1002
84d8e52
Thanks @danielguillan! - - Updated styles and layout inPricingOptions
for a more condensed design.- Added new
variant
options to supportgradient
styling inPricingOptions
:default-gradient
andcards-gradient
.
Usage example:
<PricingOptions variant="default-gradient">{/*...*/}</PricingOptions>
- Added new
-
#1005
dcfdb2c
Thanks @rezrah! - Updated dark mode color values forcanvas.default
andblack.0
- --base-color-scale-black-0: #0d1117 + --base-color-scale-black-0: #000000
- --brand-color-canvas-default: var(--base-color-scale-gray-9) + --brand-color-canvas-default: var(--base-color-scale-black-0)
@primer/[email protected]
Minor Changes
-
#991
c083863
Thanks @rezrah! - Updated the underlying HTML elements in theStatistic
component for improved accessibility. Now a paragraph by default, where it was previously a heading. It can optionally also be set as a<span>
using theas
prop.⚠️ Breaking changes:stretch
prop inStatistic.Heading
has been removed.as
prop now acceptsp
andspan
onlysize
prop now accepts1000
,900
,800
,700
,600
,500
,400
,300
,200
-
05aee45
Thanks @rezrah! - The torchlight visual effect on dark modeCard
components is now optional. The new default effect is now similar to itslight
mode counterpart.To re-enable the torchlight effect, use
variant="torchlight"
. Note this effect continues to only work indark
color modes.<ThemeProvider colorMode="dark"> <Card variant="torchlight" /> </ThemeProvider>
Patch Changes
-
#989
bb24a54
Thanks @joshfarrant! - Allow hoveredSubNav.SubMenu
menus to be closed using Escape key -
#986
c9f10ec
Thanks @rezrah! - Visual updates toButton
andActionMenu
components.secondary
button variants now feature lighter border colors.subtle
button variants now feature a semi-transparent background color inrest
state.accent
button variants in dark mode now use a darker hue for parity with its GitHub product counterpart.
-
#991
c083863
Thanks @rezrah! - Additionalsize
options available in theText
component:800
,900
,1000
. -
#985
6364954
Thanks @joshfarrant! - The focus outline color ofSubNav
links is now set tovar(--brand-color-focus);
-
#961
b43d15d
Thanks @danielguillan! - Noop update to smooth-scrolling behavior inmain.css
. Previousscroll-behavior: smooth;
is still applied, but location in the compiled stylesheet has been updated. -
#961
b43d15d
Thanks @danielguillan! - Patched a type mismatch between React 18.x and 19.x forinert
prop inRiverAccordion
component. Refer to the following source file for more details. -
#961
b43d15d
Thanks @danielguillan! - UpdatedIDE
to use the full container width.
@primer/[email protected]
Patch Changes
-
#986
c9f10ec
Thanks @rezrah! - Visual updates toButton
andActionMenu
components.secondary
button variants now feature lighter border colors.subtle
button variants now feature a semi-transparent background color inrest
state.accent
button variants in dark mode now use a darker hue for parity with its GitHub product counterpart.
@primer/[email protected]
Patch Changes
-
#972
663a4c1
Thanks @rezrah! - Add mode="split-button" variant toActionMenu
component -
#972
663a4c1
Thanks @rezrah! - Removed default arrow visibility in theButtonGroup
andCTABanner
components.Use
hasArrow
on individualButton
elements to restore the previous arrow appearance. -
#972
663a4c1
Thanks @rezrah! -ActionMenu
overlay alignment now defaults toend
, where it was previouslystart
. Use themenuAlignment
prop inActionMenu
to restore previous behavior if required.
@primer/[email protected]
@primer/[email protected]
Minor Changes
-
#939
7f0a119
Thanks @joshfarrant! - - Added a newRiverAccordion
component.Usage example:
<RiverAccordion> <RiverAccordion.Item> <RiverAccordion.Heading>A Heading</RiverAccordion.Heading> <RiverAccordion.Content>Some content</RiverAccordion.Content> <RiverAccordion.Visual> <img src="placeholder.png" alt="placeholder" /> </RiverAccordion.Visual> </RiverAccordion.Item> <RiverAccordion.Item> <RiverAccordion.Heading>Another Heading</RiverAccordion.Heading> <RiverAccordion.Content>Some content</RiverAccordion.Content> <RiverAccordion.Visual> <img src="placeholder.png" alt="placeholder" /> </RiverAccordion.Visual> </RiverAccordion.Item> <RiverAccordion.Item> <RiverAccordion.Heading>One More Heading</RiverAccordion.Heading> <RiverAccordion.Content>Some content</RiverAccordion.Content> <RiverAccordion.Visual> <img src="placeholder.png" alt="placeholder" /> </RiverAccordion.Visual> </RiverAccordion.Item> </RiverAccordion>
🔗 See the documentation for more usage examples
- Fixed a bug in the
Heading
component where the component would be re-mounted each render, causing it to lose focus when used inside a focusable element.
- Fixed a bug in the
Patch Changes
-
#974
aea5ea4
Thanks @rezrah! - Removedclsx
as a library dependency. Now treated asdevDependency
. -
#966
25db725
Thanks @joshfarrant! - Fixed a bug with theSubNav
component where theSubNav.Heading
and the currentSubNav.Link
were vertically misaligned in Safari on mobile viewports. -
#971
9de3349
Thanks @rezrah! - Fixed border radius inconsistency in theRiver
component wherepicture
elements were only showing rounded corners at the top but not the bottom. -
#973
c2d5b34
Thanks @rezrah! - Fixed type definitions forPricingOptions.Label
. Now inclusive of all props inLabel
. -
#967
b1ff17b
Thanks @danielguillan! - Added spacing between the label and the arrow in the next and previous links inPagination
. -
#965
9fdf1bf
Thanks @rezrah! - Added ahasBorder
prop toTestimonial
component. UsehasBorder={false}
to remove the default border applied by certainvariant
options.<Testimonial variant="default" hasBorder={false} />
-
#967
b1ff17b
Thanks @danielguillan! - Added a newisExternal
prop toLink
to display an external link icon.E.g.,
<Link href="https://github.com" isExternal> My external link </Link>
-
#971
9de3349
Thanks @rezrah! -River
headings and body text now have a maximum width of400px
on default 50:50 layouts. -
#971
9de3349
Thanks @rezrah! - Fixed border radius inconsistency in theCard
component wherepicture
elements were only showing rounded corners at the top but not the bottom. -
#960
1203906
Thanks @rezrah! - Updating various project dependencies.No planned changes to Primer Brand component APIs, although minor visual changes to certain icons could be visible due to an internal update of the Primer Octicons dependency.
@primer/[email protected]
@primer/[email protected]
Minor Changes
-
#955
2daaff8
Thanks @rezrah! -Button
arrows are now hidden by default for all variants exceptsubtle
as part of a Core Brand refresh.To optionally re-enable arrows, use the
hasArrow
prop.<Button variant="primary" hasArrow> Learn more </Button>
Patch Changes
-
#958
3b391a5
Thanks @rezrah! - Updates toPricingOptions
component:- New center-aligned layout available via
align
prop. - Added support for 4 pricing options. Previous maximum of 3.
- Removed heading level constraint to
as
prop inPricingOptions.Heading
. Now accepts all heading levels, while retaining the previoush3
default. - Added
accordionAs
prop toPricingOptions.FeatureList
for granular control over heading size. - All pricing items under
1011px
now have a max width and centered positioning - Fixed layout alignment bug when trailing text is not present under price.
- Fixed layout bug when footnote contains an inline link.
- New center-aligned layout available via
-
#955
2daaff8
Thanks @rezrah! - Visual update tosubtle
button variants. Borders on hover interactions have been replaced with a solid background color. -
#955
2daaff8
Thanks @rezrah! - Added newaccent
button variant.<Button variant="accent">Register now</Button>
🔗 See documentation for design guidelines and usage examples
-
#955
2daaff8
Thanks @rezrah! - Increased content spacing on wide breakpoints inCTABanner
from16px
to32px
-
#957
fbe8f17
Thanks @rezrah! - Added analign
prop to theCard
component withstart
(default) orcenter
alignment options. Refer to our documentation for examples on when the latter should be used.No breaking changes are introduced as part of this change
@primer/[email protected]
Patch Changes
-
#958
3b391a5
Thanks @rezrah! - Added new design tokens for a fourth pricing option item--brand-PricingOptions-items4-container-padding-inline --brand-PricingOptions-items4-gap
-
#955
2daaff8
Thanks @rezrah! - Added tokens foraccent
andsubtle
button variants.--brand-button-accent-bgColor-rest --brand-button-accent-bgColor-hover --brand-button-accent-bgColor-active --brand-button-accent-bgColor-disabled --brand-button-accent-fgColor-rest --brand-button-accent-fgColor-disabled --brand-button-subtle-bgColor-rest --brand-button-subtle-bgColor-hover --brand-button-subtle-bgColor-active
Removed the following tokens for
subtle
variant as they are no longer needed:--brand-button-subtle-borderColor-rest --brand-button-subtle-borderColor-hover --brand-button-subtle-borderColor-active
@primer/[email protected]
See documentation for this release
Minor Changes
- #947
646cccf
Thanks @joshfarrant! - - ImprovedVideoPlayer
appearance on narrow viewports.- This necessitated the removal of the
showControlsWhenPaused
prop to prevent the height of theVideoPlayer
from changing when the video is played/paused.
- This necessitated the removal of the