Skip to content

Commit

Permalink
feat: add support to override drawer styles
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmoura committed Apr 27, 2023
1 parent 8f76678 commit 7035ce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { renderDrawer_unstable } from './renderDrawer';
import { useDrawerStyles_unstable } from './useDrawerStyles.styles';
import type { DrawerProps } from './Drawer.types';
import type { ForwardRefComponent } from '@fluentui/react-utilities';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';

/**
* Drawer contains supplementary content and are used for complex creation, edit, or management experiences.
Expand All @@ -12,6 +13,8 @@ export const Drawer: ForwardRefComponent<DrawerProps> = React.forwardRef((props,
const state = useDrawer_unstable(props, ref);

useDrawerStyles_unstable(state);
useCustomStyleHook_unstable('useDrawerStyles_unstable')(state);

return renderDrawer_unstable(state);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export type CustomStyleHooksContextValue = Partial<{
useDataGridHeaderStyles_unstable: CustomStyleHook;
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
useDrawerStyles_unstable: CustomStyleHook;
useDrawerBodyStyles_unstable: CustomStyleHook;
}>;

Expand Down

0 comments on commit 7035ce5

Please sign in to comment.