Releases: primer/brand
@primer/[email protected]
Minor Changes
- #453
5855526
Thanks @rezrah! - - Newfont
prop added toText
andHeading
components to alternate betweenmona-sans
andhubot-sans
variable fonts.mona-sans
remains the default.- Uses latest
v1.0.1
releases of (Hubot Sans
)[https://github.com/github/hubot-sans/releases/tag/v1.0.1] and (Mona Sans
)[https://github.com/github/mona-sans/releases/tag/v1.0.1] fonts. - Added
extralight
weight option
- Uses latest
Patch Changes
-
#468
a6251df
Thanks @rezrah! - Force removal of link underlines in Card components, to prevent specificity issues with local stylesheet overrides. -
#451
b15ab24
Thanks @joseph-lozano! - Fixed menu item overflow issues on narrow viewports inSubdomainNavBar
.In addition, the
body
element will now hide overflow content and prevent background scrolling when the menu is open. -
#480
0e1e3bb
Thanks @joseph-lozano! - Improved keyboard navigation in theSubdomainNavBar
mobile menu using focus trapping. -
#469
da4e989
Thanks @joseph-lozano! - Changed the aria-label for the GitHub link in the footer -
#457
9ea0803
Thanks @joseph-lozano! - Fixed issue with prose un-ordered lists in dark mode -
#479
1896326
Thanks @rezrah! - Increase tracking of 100 typographic position to improve readability -
#479
1896326
Thanks @rezrah! - Added export for CardSkewEffect component -
#468
a6251df
Thanks @rezrah! - Added 'torchlight' hover effect to dark mode Card instances.See: https://primer.style/brand/components/Card/react#torchlight-effect
@primer/[email protected]
@primer/[email protected]
Patch Changes
-
#459
0166b19
Thanks @rezrah! - AddsborderBlockStartWidth
,borderBlockEndWidth
,borderInlineStartWidth
, andborderInlineEndWidth
props to theBox
component to support directional borders.<> <Box borderBlockStartWidth="thin" borderColor="default" borderStyle="solid" /> <Box borderBlockEndWidth="thin" borderColor="default" borderStyle="solid" /> <Box borderInlineStartWidth="thin" borderColor="default" borderStyle="solid" /> <Box borderInlineEndWidth="thin" borderColor="default" borderStyle="solid" /> </>
-
#456
64318fd
Thanks @rezrah! - Added hook foruseWindowSize
to the library exports.Usage example:
import {useWindowSize} from '@primer/react-brand'
function Component() { const {width, height, isXSmall, isSmall, isMedium, isLarge, isXLarge, isXXLarge, currentBreakpointSize} = useWindowSize() }
-
#460
893df22
Thanks @rezrah! - Improvements to default styling in FAQ content. -
#456
64318fd
Thanks @rezrah! - EnabledforwardRef
onHero.Description
,Hero.Label
andHero.Image
. -
#435
3227a7d
Thanks @josepmartins! - AddsBlockquote
,Code
,Figure
andFigcaption
to theProse
component. -
#464
8e858cb
Thanks @rezrah! - Replace usage ofstart
withflex-start
inBento
,Hero
andFAQGroup
components. -
#461
4ebe9a5
Thanks @rezrah! - Addfont-smoothing
to base stylesheet, for better font rendering on macOS.
@primer/[email protected]
@primer/[email protected]
Patch Changes
-
#449
d009559
Thanks @rezrah! - Fixed bug inAnchorNav
whereby the active link would not be highlighted when the page first loads. -
#443
6a7dc95
Thanks @josepmartins! - Fixes bug in theTestimonial
component that prevents avatar get squished -
#440
4c0bd32
Thanks @rezrah! - AddedhideUntilSticky
option to AnchorNav component. This will visibly hide theAnchorNav
until it becomes sticky.<AnchorNav hideUntilSticky> <AnchorNav.Link href="#section">...</AnchorNav.Link> </AnchorNav>
For any additional client-side customization, a
data-sticky
attribute is available and will be set totrue
when theAnchorNav
is sticky. -
#447
4803d21
Thanks @rezrah! - Reducedlarge
button text size to20px
.
@primer/[email protected]
@primer/[email protected]
Minor Changes
-
#431
2243ae4
Thanks @rezrah! - Fix erroneousInlineLink
appearance on multiline.Removed the following design tokens:
- --brand-InlineLink-transition-scale-start - --brand-InlineLink-transition-scale-end
-
#428
6141bff
Thanks @josepmartins! - - Updates the border radius scale to use the updatedsmall
,medium
,large
, and the newxlarge
tokens.- Adds
xlarge
border radius option to theBox
component properties.
- Adds
Patch Changes
-
#429
aacbde1
Thanks @josepmartins! - Fixes style not being passed as general props to theCard
component -
#433
dd02bc2
Thanks @rezrah! - Fixed incorrect click target area for Accordion answers -
#436
28bdf5e
Thanks @josepmartins! - Adds default height toCard
to align vertical size when usingGrid
orStack
components as a wrappers. -
#431
2243ae4
Thanks @rezrah! - Reduced Textarea text size to 14px and 16px for medium and large sizes respectively, for consistency with other free text inputs.
@primer/[email protected]
Minor Changes
-
#428
6141bff
Thanks @josepmartins! - Removes old control border radius tokens- --brand-control-border-radius - --brand-control-large-borderRadius - --brand-control-medium-borderRadius
Modifies border radius scale values and adds new
xlarge
border radius option to the scale+ --brand-borderRadius-small: 4px + --brand-borderRadius-medium: 8px + --brand-borderRadius-large: 16px + --brand-borderRadius-xlarge: 24px
-
#431
2243ae4
Thanks @rezrah! - Fix erroneousInlineLink
appearance on multiline.Removed the following design tokens:
- --brand-InlineLink-transition-scale-start - --brand-InlineLink-transition-scale-end
@primer/[email protected]
Minor Changes
-
#424
61eba57
Thanks @josepmartins! - > WarningThis is a breaking change to the
Testimonial
component.- Update
Testimonial
component provider layout styles - Remove
Testimonial
align
prop
- Update
-
#420
ad6c877
Thanks @rezrah! - Use the bento to present content in a responsive grid layout.<Bento> <Bento.Item columnSpan={3} rowSpan={8} /> <Bento.Item columnSpan={3} rowSpan={4} /> <Bento.Item columnSpan={6} rowSpan={8} /> <Bento.Item columnSpan={3} rowSpan={4} rowStart={9} /> <Bento.Item columnSpan={3} rowSpan={8} /> <Bento.Item columnSpan={6} rowSpan={4} /> </Bento>
Patch Changes
-
#427
084db13
Thanks @rezrah! - Increase space between river heading and description to 16px from 8px -
#425
88e42f0
Thanks @josepmartins! - AdjustFAQGroup
navigation styles for selected items -
#427
084db13
Thanks @rezrah! - Fixed a bug inHero
where an empty div with end-specific margin is erroneously defined for CTAs. -
#427
084db13
Thanks @rezrah! - Update FormControl hasBorder color value to match control borders -
#427
084db13
Thanks @rezrah! - Addnone
option to Box spacing props to reset defined paddings at larger viewports.<Box padding={{ narrow: 24, wide: 'none' // <-- this will remove padding at the wide viewport }} />
@primer/[email protected]
Patch Changes
-
#423
9299f25
Thanks @josepmartins! - Add inner spacing values for RiverBreakout. Uses 64px in desktop, 48px in tablet and 40px in mobile.--brand-RiverBreakout-spacing-inner