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
consolidated index.ts into useCardStyles for simplicity
  • Loading branch information
terynkum committed Feb 26, 2025
commit 92816d37820f151ec1d70f2133d28316dc0a0655

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { makeStyles, mergeClasses, tokens } from '@fluentui/react-components';
import { type CardState } from '@fluentui/react-components';
import { type FluentProviderCustomStyleHooks } from '@fluentui/react-components';

const useCardStyle = makeStyles({
root: {
@@ -15,3 +16,7 @@ export const useCardStyles = (state: unknown) => {
const componentState = state as CardState;
componentState.root.className = mergeClasses(componentState.root.className, cardStyles.root);
};

export const customStyleHooks: FluentProviderCustomStyleHooks = {
useCardStyles_unstable: useCardStyles,
};
Loading
Oops, something went wrong.