[Feature]: Support custom style hook "inheritance" #30308
Labels
Fluent UI react-components (v9)
Resolution: Soft Close
Soft closing inactive issues over a certain period
Type: Feature
Library
React Components / v9 (@fluentui/react-components)
Describe the feature that you would like added
I want nested
FluentProvider
s to be able to inherit their parentFluentProvider
s' custom style hooks.For example:
Live example (note this shows the current "issue", i.e., it doesn't work as requested)
Have you discussed this feature with our team
@micahgodbolt
Additional context
Today style inheritance doesn't work as requested but nested
FluentProvider
s do inherit customizations so long as they themselves do not add futher customization. So if the parent customizesButton
and the child does not, all the parent customizations will render in the child. If the child customizesButton
as well none of the parent customizations will render in the child.This creates a somewhat strange state of affairs in that "inheritance" seems to work in some cases and then not at all in others which is likely to be confusing to users.
Validations
Priority
Normal
The text was updated successfully, but these errors were encountered: