Closed YaokaiYang-assaultmaster closed 5 years ago
@aftab-hassan this is related to Dialog, not Icon.
We are looking at converting to use a slots pattern, which we could then consider this for the title slot. Every slot in a composite component should take in jsx.
@JasonGore for heads up.
It would be very beneficial for our team (Power platform) too. It provides contextual feedback and it also allows our users to feel a sense of accomplishment of fulfilling a task done in a dialog
Seems like i too had a same requirement, to show the Icon in title.
By just changing the type to also allow JSX, this should enable your scenario. PR up.
:tada:This issue was addressed in #8405, which has now been successfully released as office-ui-fabric-react@v6.159.0
.:tada:
Handy links:
I would say #8405 only partially addresses this scenario, as the parent element for the title is <p>
. This prevents adding children such as <div>
, which removes some of the usefulness.
Describe the feature that you would like added
For now the
Dialog
's title can only be string. Can we support addingIcon
to a title?What component or utility would this be added to
dialogContentProps.title
ofDialog
Have you discussed this feature with our team, and if so, who Not yet
Additional context/screenshots
Like this: