This document will review in detail the changes in Carbon for IBM Products v1 to
v2. Because Carbon for IBM Products v2 uses Carbon v11, which utilizes Sass
modules, there is a requirement for teams to use the
Dart Sass package (sass
), as opposed to
node-sass
. This introduces some new sass concepts such as
@use
vs
@import
and
namespaces.
For Carbon v11 migration guidance, see their
migration guide.
v1 and v2 will both receive weekly releases occurring every Tuesday morning.
Component | Changes |
---|---|
AboutModal | View changes here |
APIKeyModal | No API changes. |
ActionBar | View changes here |
Cascade | No API changes. |
CreateModal | No API changes. |
CreateFullPage | No API changes. |
CreateFullPageStep | No API changes. |
CreateSidePanel | No API changes. |
CreateTearsheetNarrow | No API changes. |
CreateTearsheet | No API changes. |
CreateTearsheetStep | No API changes. |
DataSpreadsheet | No API changes. |
Datagrid | View changes here |
EditInPlace | View changes here |
EditSidePanel | View changes here |
EditTearsheet | No API changes. |
EditTearsheetNarrow | No API changes. |
EditFullPage | No API changes. |
EditUpdateCards | No API changes. |
EmptyState | View changes here |
ExportModal | No API changes. |
ExpressiveCard | View changes here |
HTTPError403 | No API changes. New version here |
HTTPError404 | No API changes. New version here |
HTTPErrorOther | No API changes. New version here |
ImportModal | No API changes. |
InlineEdit | View changes here |
ModifiedTabs | This component is deprecated in v2 |
MultiAddSelect | No API changes. |
NotificationsPanel | No API changes. |
OptionsTile | No API changes. |
PageHeader | No API changes. |
ProductiveCard | View changes here |
RemoveModal | No API changes. |
Saving | No API changes. |
SidePanel | View changes here |
SingleAddSelect | No API changes. |
StatusIcon | View changes here |
TagSet | View changes here |
Tearsheet | No API changes. |
TearsheetNarrow | No API changes. |
Toolbar | No API changes. |
ToolbarButton | View changes here |
ToolbarGroup | No API changes. |
UserProfileImage | View changes here |
WebTerminal | No API changes. |
WebTerminalContentWrapper | No API changes. |
WebTerminalProvider | No API changes. |
additionalInfo
prop has changed fromPropTypes.array
toPropTypes.node
.- New
version
prop has been added. - Carbon Modal now requires an aria label, thus
modalAriaLabel
is required. legalText
prop is removed, this content should be included in thecontent
prop
iconDescription
has changed tolabel
- Each action from the
actions
prop is required to include alabel
property.
useInlineEdit
has been renamed touseEditableCell
- The following hooks are feature flagged until further review:
- useInfiniteScroll
- useEditableCell
- useExpandedRow
- useNestedRows
- useActionsColumn
- useFiltering
- useCustomizeColumns
- Renamed from
InlineEdit
v1 and v2 properties removed
- The
max
size option, from thesize
prop, has been renamed to2xl
to further align with Carbon naming conventions.
- New
illustrationPosition
prop:'top', 'right', 'bottom', 'left'
pictogram
can now be either a function or object.
-
HTTPError403
,HTTPError404
,HTTPErrorOther
are deprecated and will be removed in the next major version. Please migrate toFullPageError
, view docs. -
errorCodeLabel
-->label
-
links
prop is removed; links can be passed as children instead -
New
kind
prop:'404', '403', 'custom'
- The IconButtonBar is removed in V2 as the existing ActionBar is a viable replacement.
- Renamed to
EditInPlace
v1 and v2 properties removed.
- New
overflowAriaLabel
prop is required if items are passed tooverflowActions
.
- The
max
size option, from thesize
prop, has been renamed to2xl
to further align with Carbon naming conventions.
- The
xlg
size option, from thesize
prop, has been renamed toxl
to further align with Carbon naming conventions.
overflowDirection
has been removed. Instead, useoverflowAlign
which includes new options that are passed to the Carbon tooltip component. To see the available options for the Tooltip'salign
prop, view here.
iconDescription
andrenderIcon
are now both required props.
- The
xlg
size option, from thesize
prop, has been renamed toxl
to further align with Carbon naming conventions.