Skip to content

Conversation

@OriLev
Copy link
Owner

@OriLev OriLev commented Feb 3, 2018

the app now validates the new color inputs and uses default values if the input is NOT valid.

value: currentNewColor,
placeholder: `Default: ${defaultColor}`,
value: colorValue,
type: 'text',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll just leave this here: https://devdocs.io/html/element/input/color

const exampleProps = {
style: {
display: 'inline-block',
backgroundColor: colorToBeUsed,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use CSS for all non dynamic values and inline style for only dynamic ones.

}
componentWillUpdate(nextProps, nextState) {
const { stateValidation, newColorNames, } = this;
const isHexColor = colorKey => (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OriLev OriLev merged commit 7d79e5f into settings-page Apr 12, 2018
@OriLev OriLev deleted the settings/validate-input branch April 12, 2018 08:15
OriLev added a commit that referenced this pull request Apr 12, 2018
* fix Nick's comments to PR#7

* fix a function name according to Nick's comments to PR#7

* fix Nick's comments to PR#7 and PR#8

* remove dist/ from git repository

* add page header to settings page

* add color inputs and submit button for settings page

* fix missing key in NewColorsInput

* change lint rule regarding the label tag and refactor code accordingly

* update key value from index to colorLetter

* fix indentation

* refactor the setState syntax

* change text shown

* Settings/validate input (#11)

* add validation on input entry

* add validation for new color inputs

* clean SettingPanel variables

* add feedback and design and design the settings panel

* change the color input type from text to color

* add reset button

* prepare for github pages deployement
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.

2 participants