diff --git a/packages/ibm-products/src/components/ConditionBuilder/ConditionBuilder.types.ts b/packages/ibm-products/src/components/ConditionBuilder/ConditionBuilder.types.ts index 49f572490b..daddf1e47a 100644 --- a/packages/ibm-products/src/components/ConditionBuilder/ConditionBuilder.types.ts +++ b/packages/ibm-products/src/components/ConditionBuilder/ConditionBuilder.types.ts @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ import { TextAreaProps, TextInputProps } from '@carbon/react'; -import { CarbonIconType } from '@carbon/react/icons'; +import { CarbonIconType } from '@carbon/icons-react'; import { NumberInputProps } from '@carbon/react/lib/components/NumberInput/NumberInput'; import { Dispatch, diff --git a/packages/ibm-products/src/components/DataSpreadsheet/DataSpreadsheetBody.tsx b/packages/ibm-products/src/components/DataSpreadsheet/DataSpreadsheetBody.tsx index 2383da3fff..1d6423c1c6 100644 --- a/packages/ibm-products/src/components/DataSpreadsheet/DataSpreadsheetBody.tsx +++ b/packages/ibm-products/src/components/DataSpreadsheet/DataSpreadsheetBody.tsx @@ -789,7 +789,6 @@ export const DataSpreadsheetBody = forwardRef( [ prepareRow, renderRowHeader, - renderRowHeaderDirection, rows, hasCustomRowHeader, activeCellCoordinates?.row, @@ -797,8 +796,9 @@ export const DataSpreadsheetBody = forwardRef( handleRowHeaderClickEvent, handleBodyCellClickEvent, handleBodyCellHoverEvent, - defaultColumn, columns, + defaultColumn, + renderRowHeaderDirection, ] ); diff --git a/packages/ibm-products/src/components/NotificationsPanel/NotificationsPanel.tsx b/packages/ibm-products/src/components/NotificationsPanel/NotificationsPanel.tsx index 8f53e32c28..d6083e6ee4 100644 --- a/packages/ibm-products/src/components/NotificationsPanel/NotificationsPanel.tsx +++ b/packages/ibm-products/src/components/NotificationsPanel/NotificationsPanel.tsx @@ -33,7 +33,11 @@ import { getDevtoolsProps } from '../../global/js/utils/devtools'; import { pkg } from '../../settings'; import { prepareProps } from '../../global/js/utils/props-helper'; import { timeAgo } from './utils'; -import { useClickOutside, usePreviousValue } from '../../global/js/hooks'; +import { + useClickOutside, + useIsomorphicEffect, + usePreviousValue, +} from '../../global/js/hooks'; import usePrefersReducedMotion from '../../global/js/hooks/usePrefersReducedMotion'; import wrapFocus from '../../global/js/utils/wrapFocus'; @@ -646,6 +650,18 @@ export let NotificationsPanel = React.forwardRef( }, ]); + useIsomorphicEffect(() => { + // setTimeout ensures that this gets run + const timeout = setTimeout(() => { + if (notificationPanelRef.current && !reducedMotion) { + notificationPanelRef.current.style.animation = open + ? 'fade-in 250ms' + : 'fade-out forwards 250ms'; + } + }, 0); + return () => clearTimeout(timeout); + }, [open, reducedMotion]); + return shouldRender ? ( <>