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

Custom color swatch #385

Merged
merged 4 commits into from
Oct 9, 2019
Merged

Custom color swatch #385

merged 4 commits into from
Oct 9, 2019

Conversation

eweintraub
Copy link

Q A
Bug fix? [ ]
New feature? [ X]
New sample? [ ]
Related issues? N/A

What's in this Pull Request?

Added the ability to add a third Color Swatch Group called custom. This will allow you to add custom colors to the font color selector.

sample:

<RichText 
                value={this.props.richTextValue}
                onChange={(text)=>this.props.onRichTextChange(text)}
                customColors={[
                  {
                    color: 'White',
                    id: '#ffffff',
                    label: 'White'
                  },
                  {
                    color: 'Grey',
                    id: '#efefef',
                    label: 'Grey'
                  }
                ]}
              />

Screen Shot 2019-10-04 at 2 15 15 PM

@AJIXuMuK AJIXuMuK merged commit 0fb0fa7 into pnp:dev Oct 9, 2019
@AJIXuMuK
Copy link
Collaborator

AJIXuMuK commented Oct 9, 2019

Thank you @eweintraub for this feature!

@eweintraub
Copy link
Author

eweintraub commented Oct 9, 2019 via email

@estruyf estruyf mentioned this pull request Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants