Skip to content

Update AdvancedStylingTechniques on the docsite to recommend using getSlotClassNameProp_unstable #34266

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

Merged
merged 3 commits into from
May 5, 2025

Conversation

behowell
Copy link
Contributor

@behowell behowell commented Apr 15, 2025

Note: This was originally in PR #34166 but was pulled out to have a separate discussion about documentation. For further context, please see this discussion thread: https://github.com/microsoft/fluentui/pull/34166/files#r2044847081

Previous Behavior

The documentation for custom style hooks on the public docsite does not mention using getSlotClassNameProp_unstable, which is necessary for correctly implementing a custom style hook, to avoid overriding the className set by a user.

New Behavior

Update the AdvancedStylingTechniques article to demonstrate how to call getSlotClassNameProp_unstable in a custom style hook.

Related Issue(s)

Copy link

github-actions bot commented Apr 15, 2025

📊 Bundle size report

✅ No changes found

Copy link

Pull request demo site: URL

@behowell behowell enabled auto-merge (squash) May 5, 2025 22:48
@behowell behowell merged commit a1987fa into microsoft:master May 5, 2025
11 of 15 checks passed
dmytrokirpa pushed a commit to dmytrokirpa/fluentui that referenced this pull request May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants