Releases: primer/brand
@primer/[email protected]
@primer/[email protected]
🔗 See Primer Brand documentation for 0.58.1
Patch Changes
-
#1156
fc489e8Thanks @danielguillan! - Ensures thesvgin theIconcomponent is properly aligned vertically -
#1157
766850fThanks @danielguillan! - Improves the appearance of the focus ring on theminimalvariant ofCard.
@primer/[email protected]
@primer/[email protected]
@primer/[email protected]
🔗 See Primer Brand documentation for 0.58.0
Minor Changes
-
#1151
3e39ae1Thanks @rezrah! - Updated the minimum Node.js dependency for@primer/react-brandto match the current LTS version:v22Also updated
webpackand various other internal dependencies. -
#1132
072f640Thanks @rezrah! - Added newTabscomponent.Example:
<Tabs {...args} aria-label="Tabs"> <Tabs.Item>Tab one</Tabs.Item> <Tabs.Item>Tab two</Tabs.Item> <Tabs.Panel> <Text>Panel one</Text> </Tabs.Panel> <Tabs.Panel> <Text>Panel two</Text> </Tabs.Panel> </Tabs>
Patch Changes
-
#1133
23a0d50Thanks @joshfarrant! - Added some comments to theAccordioncomponent. This is a no-op update. -
#1132
072f640Thanks @rezrah! - Updates touseTabshook:- Added an optional
externalRefparameter togetTabPropsfunction for improved forwardRef support. - Fixed
onTabActivatecallback to only trigger when switching between tabs (not on initial mount) - Optimized focus state management by preventing unnecessary state updates when focus doesn't change.
- Removed redundant state updates in
focusTabandonTabFocusfunctions
This affects the following components, which use this hook:
TabscomponentIDEcomponent
- Added an optional