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.