Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Implement Custom Style Hook for Card component #33912

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disabled eslint rule for unstable suffix
  • Loading branch information
terynkum committed Feb 27, 2025
commit 1c4a0ab5d9cb604908d725380d3b2535f271b568
Original file line number Diff line number Diff line change
@@ -31,7 +31,8 @@ export const useCardStyles = (state: unknown) => {
componentState.root.className = mergeClasses(componentState.root.className, cardStyles.root);
};

export const customStyleHooks: FluentProviderCustomStyleHooks = {
export const CUSTOM_STYLE_HOOKS: FluentProviderCustomStyleHooks = {
// eslint-disable-next-line @typescript-eslint/naming-convention
useCardStyles_unstable: useCardStyles,
};

@@ -54,7 +55,7 @@ export const Default = () => {
const styles = useStyles();

return (
<FluentProvider customStyleHooks_unstable={customStyleHooks}>
<FluentProvider customStyleHooks_unstable={CUSTOM_STYLE_HOOKS}>
<Card className={styles.card}>
<CardHeader
image={<img src={resolveAsset('avatar_elvia.svg')} alt="Elvia Atkins avatar picture" />}
Loading
Oops, something went wrong.