Skip to content

Commit 5e65d80

Browse files
authored
fix(react-toast): invoke useCustomStyleHook_unstable() (#29632)
1 parent d4ad8bc commit 5e65d80

7 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: invoke useCustomStyleHook_unstable()",
4+
"packageName": "@fluentui/react-provider",
5+
"email": "olfedias@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: invoke useCustomStyleHook_unstable()",
4+
"packageName": "@fluentui/react-shared-contexts",
5+
"email": "olfedias@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: invoke useCustomStyleHook_unstable()",
4+
"packageName": "@fluentui/react-toast",
5+
"email": "olfedias@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/react-components/react-provider/etc/react-provider.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export const FluentProvider: React_2.ForwardRefExoticComponent<Omit<ComponentPro
133133
useMessageBarTitleStyles_unstable: (state: unknown) => void;
134134
useMessageBarActionsStyles_unstable: (state: unknown) => void;
135135
useMessageBarGroupStyles_unstable: (state: unknown) => void;
136+
useToasterStyles_unstable: (state: unknown) => void;
136137
}> | undefined;
137138
dir?: "ltr" | "rtl" | undefined;
138139
targetDocument?: Document | undefined;

packages/react-components/react-shared-contexts/etc/react-shared-contexts.api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
128128
useMessageBarTitleStyles_unstable: CustomStyleHook;
129129
useMessageBarActionsStyles_unstable: CustomStyleHook;
130130
useMessageBarGroupStyles_unstable: CustomStyleHook;
131+
useToasterStyles_unstable: CustomStyleHook;
131132
}> | undefined>;
132133

133134
// @public (undocumented)
@@ -237,6 +238,7 @@ export type CustomStyleHooksContextValue_unstable = Partial<{
237238
useMessageBarTitleStyles_unstable: CustomStyleHook;
238239
useMessageBarActionsStyles_unstable: CustomStyleHook;
239240
useMessageBarGroupStyles_unstable: CustomStyleHook;
241+
useToasterStyles_unstable: CustomStyleHook;
240242
}>;
241243

242244
// @internal (undocumented)
@@ -346,6 +348,7 @@ export const CustomStyleHooksProvider_unstable: React_2.Provider<Partial<{
346348
useMessageBarTitleStyles_unstable: CustomStyleHook;
347349
useMessageBarActionsStyles_unstable: CustomStyleHook;
348350
useMessageBarGroupStyles_unstable: CustomStyleHook;
351+
useToasterStyles_unstable: CustomStyleHook;
349352
}> | undefined>;
350353

351354
// @internal (undocumented)

packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export type CustomStyleHooksContextValue = Partial<{
111111
useMessageBarTitleStyles_unstable: CustomStyleHook;
112112
useMessageBarActionsStyles_unstable: CustomStyleHook;
113113
useMessageBarGroupStyles_unstable: CustomStyleHook;
114+
useToasterStyles_unstable: CustomStyleHook;
114115
}>;
115116

116117
/**

packages/react-components/react-toast/src/components/Toaster/Toaster.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
12
import * as React from 'react';
3+
24
import { useToaster_unstable } from './useToaster';
35
import { renderToaster_unstable } from './renderToaster';
46
import { useToasterStyles_unstable } from './useToasterStyles.styles';
@@ -11,6 +13,7 @@ export const Toaster: React.FC<ToasterProps> = props => {
1113
const state = useToaster_unstable(props);
1214

1315
useToasterStyles_unstable(state);
16+
useCustomStyleHook_unstable('useToasterStyles_unstable')(state);
1417
return renderToaster_unstable(state);
1518
};
1619

0 commit comments

Comments
 (0)