Skip to content

Commit

Permalink
Add theme selection to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneLem committed Dec 23, 2019
1 parent e39c1e5 commit e66be9d
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 5 deletions.
44 changes: 40 additions & 4 deletions docs/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion docs/emoji-mart.css
Expand Up @@ -419,12 +419,18 @@

.emoji-mart-dark {
color: #fff;
border-color: #555453;
background-color: #222;
}

.emoji-mart-dark .emoji-mart-bar {
border-color: #555453;
}

.emoji-mart-dark .emoji-mart-search input {
background-color: #2f2f2f;
color: #fff;
border-color: #555453;
background-color: #2f2f2f;
}

.emoji-mart-dark .emoji-mart-search-icon svg {
Expand All @@ -439,3 +445,8 @@
background-color: #222;
color: #fff;
}

.emoji-mart-dark .emoji-mart-skin-swatches {
border-color: #555453;
background-color: #222;
}
32 changes: 32 additions & 0 deletions docs/index.js
Expand Up @@ -56,6 +56,7 @@ class Example extends React.Component {
</div>

<div className="row sets">
Set: 
{[
'native',
'apple',
Expand Down Expand Up @@ -92,6 +93,37 @@ class Example extends React.Component {
})}
</div>

<div className="row-small sets">
Theme: 

<button
disabled={this.state.darkMode == undefined}
onClick={() => {
this.setState({ darkMode: undefined })
}}
>
auto
</button>

<button
disabled={this.state.darkMode == false}
onClick={() => {
this.setState({ darkMode: false })
}}
>
light
</button>

<button
disabled={this.state.darkMode}
onClick={() => {
this.setState({ darkMode: true })
}}
>
dark
</button>
</div>

<div className="row">
<Picker {...this.state} onSelect={console.log} />
</div>
Expand Down

0 comments on commit e66be9d

Please sign in to comment.