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

Conversation

@eweintraub
Copy link

eweintraub commented Oct 9, 2019

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

Eric Weintraub and others added 4 commits Oct 4, 2019
Eric Weintraub
Eric Weintraub
@AJIXuMuK AJIXuMuK merged commit 0fb0fa7 into SharePoint:dev Oct 9, 2019
3 checks passed
3 checks passed
ci/circleci: build Your tests passed on CircleCI!
Details
ci/circleci: test Your tests passed on CircleCI!
Details
license/cla All CLA requirements met.
Details
@AJIXuMuK

This comment has been minimized.

Copy link
Collaborator

AJIXuMuK commented Oct 9, 2019

Thank you @eweintraub for this feature!

@eweintraub

This comment has been minimized.

Copy link
Author

eweintraub commented Oct 9, 2019

@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
Projects
None yet
2 participants
You can’t perform that action at this time.