Closed spmonahan closed 8 months ago
As we discussed in offline, let's introduce a factory to create
root
, i.e.:const root = createRoot({ sheetInsertionPoint: sheet })
@layershifter Made this update.
@layershifter I think I've addressed the changes we discussed. Can you remove your hold on the PR so it can be merged?
@layershifter I think I've addressed the changes we discussed. Can you remove your hold on the PR so it can be merged?
@spmonahan I have already approved the PR previous week 🐱
@microsoft/fluentui-react-build can you please check the PR? 🙏
Adds an "insertion point" API similar to Griffel's API.
Here we use a special sentinel
ExtendedCSSStyleSheet
in theadoptedStyleSheets
array and look it up prior to setting the stylesheets.~Additionally, a constant for whether
adoptedStyleSheets
is mutable is added so we can conditionally update the array. This improves Safari support. See this PR for more details.~Resolves #59