Skip to content
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

Toggle: theme is now injectable. #1943

Merged
merged 3 commits into from
Jun 6, 2017
Merged

Toggle: theme is now injectable. #1943

merged 3 commits into from
Jun 6, 2017

Conversation

dzearing
Copy link
Member

@dzearing dzearing commented Jun 6, 2017

Description of changes

When rendering Toggle components, they now respect injectable themes.

This can mean the default theme using the loadTheme helper:

import { loadTheme } from 'office-ui-fabric-react/lib/Styling';

loadTheme({{ palette: { themePrimary: 'green' }});

Or injected using the Customizer:

let greenTheme = createTheme({ palette: { themePrimary: 'green' }});

return (
  <Customizer settings={{ theme: greenTheme }}>
    <Toggle/>
  </Customizer>
);

@dzearing dzearing merged commit 72be6cc into microsoft:master Jun 6, 2017
@dzearing dzearing deleted the toggle branch June 6, 2017 07:28
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants