Skip to content
Discussion options

You must be logged in to vote

Hi @johntieu,

Here I have made a solution (working) in which 'Customizer' is replaced by 'ThemeProvider', please check the following example and tell me if working to you:

https://codesandbox.io/s/fluentui-replace-customizer-v1-0-2-ok2qtv

The code working is as follow:

import * as React from "react";
import { useId, useBoolean } from "@fluentui/react-hooks";
import { initializeIcons } from "@fluentui/react/lib/Icons";
import {
  ThemeProvider,
  Panel,
  Toggle,
  LayerHost,
  ILayerProps,
  IFocusTrapZoneProps,
  mergeStyles
} from "@fluentui/react";

initializeIcons();

export default function LayerCustomizedExample() {
  const [
    isPanelOpen,
    { setTrue: showPanel, setFalse: dism…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@palonza
Comment options

@johntieu
Comment options

Comment options

You must be logged in to vote
2 replies
@palonza
Comment options

@johntieu
Comment options

Answer selected by johntieu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants