Releases: primer/brand
@primer/[email protected]
Minor Changes
-
#1101
7d344dc
Thanks @joshfarrant! - Added play/pause control to theIDE
component.⚠️ Removed theshowReplayButton
prop as the play/pause control replaces its functionality, and is always visible.
Patch Changes
-
#1113
30d9f1f
Thanks @danielguillan! - Updated the layout of single itemPricingOptions
-
#1111
8dc3fc9
Thanks @joshfarrant! - Improvements to the styling of various components when viewed in Windows High Contrast Mode.FAQGroup
: Improved appearance for the selected tabPagination
: Improved appearance for the current page itemVideoPlayer
: Improved legibility for all text and controlsCheckbox
: Improved focus and checked appearanceRadio
: Improved focus and checked appearanceTextInput
: Improved focus appearanceTextarea
: Improved focus appearanceActionMenu
: Improved focus appearance
-
#1114
3a62a9e
Thanks @rezrah! - Added support for<table>
elements in theProse
component. Tables now render with improved visual appearance. -
#1102
5ef7878
Thanks @joshfarrant! - TheButton
component now automatically applies semantically correct disabled attributes based on the rendered element type. E.g.disabled
for button elements andaria-disabled
for other elements.⚠️ Please review usage ofButton
in your application code or tests, to ensure that you are not relying on the previously incorrect markup. For example, if you previously targeteda[disabled]
, you should now targeta[aria-disabled]
instead.
@primer/[email protected]
Patch Changes
- #1113
30d9f1f
Thanks @danielguillan! - Updated the layout of single itemPricingOptions
@primer/[email protected]
@primer/[email protected]
See documentation for this release
Patch Changes
-
#1084
d0757df
Thanks @joshfarrant! - Improved keyboard navigation inSubNav
anchor variant.The anchor-based submenu now appears after the main
SubNav
items in the focus order, and becomes visible when focussed. -
#1085
61e9adc
Thanks @joshfarrant! - Minor internal refactoring toVideoPlayer
component -
#1072
775e640
Thanks @joshfarrant! - Fixed a bug in theSubNav
component where the separator could appear on a new line during initial render in Safari. -
#1082
6531558
Thanks @joshfarrant! - Internal refactoring toSubdomainNavBar
component to remove an unused prop —showOnlyOnNarrow
— which was leaking into the DOM. -
#1097
d7a954f
Thanks @rezrah! - Add support for privacy-enhanced Youtube embeds in theProse
component. Now supports theyoutube-nocookie.com
hostname. -
#1089
afd46c1
Thanks @joshfarrant! - Improved focus styles for links insideTimeline.Item
. -
#1087
35f3e3e
Thanks @joshfarrant! - Added visually-hidden, non-breaking spaces between each text item in theEyebrowBanner
component. This improves announcements in screen readers, where they would previously be announced without a pause.
@primer/[email protected]
@primer/[email protected]
@primer/[email protected]
Patch Changes
-
#1075
a2c84fd
Thanks @joshfarrant! - AddedonNarrowMenuToggle
prop toSubdomainNavBar
. When the menu is opened or closed on narrow viewports, the providedonNarrowMenuToggle
callback is called with the new open state.This prop can be used to ensure the main content area is hidden from assistive technologies when the menu is open.
-
#1074
bcf5bda
Thanks @rezrah! - Improved styling for<video>
elements and Youtube embeds in theProse
component -
#1081
b2ed501
Thanks @rezrah! - UpdateduseProvidedRefOrCreate
to support functional refs. Backwards compatibility withRefObject
remains unchanged.This update improves support for functional refs in the following components:
Accordion
,Checkbox
,Radio
,SubNav
,Tooltip
andVideoPlayer
. -
#1073
cfe8c0b
Thanks @rezrah! - Updated visual heading hierarchy in theProse
component.h3
reduced fromsize-500
tosize-400
h4
reduced fromsize-400
tosize-300
h5
reduced fromsubhead-large
tosubhead-medium
h2
andh6
are unchanged
This update makes it easier to visually distinguish between
h2
andh3
elements on the page, which were previously too similar in size.
@primer/[email protected]
@primer/[email protected]
@primer/[email protected]
See documentation for this release
Patch Changes
-
#1048
3512d15
Thanks @joshfarrant! - Children passed toCard
component now appear in the DOM in a predefined order to improve the experience of screen reader users. -
#1070
86e8e8c
Thanks @joshfarrant! - Fixed a bug where anFAQ.Heading
used within anFAQGroup
wouldn't respect the providedas
prop.