Skip to content

Commit

Permalink
Merge pull request #352 from PatrykLucka/enhance/341
Browse files Browse the repository at this point in the history
Style Input type=color (#341)
  • Loading branch information
gesquinca authored Nov 20, 2019
2 parents 365a770 + 1aaa8ce commit d24ebe9
Show file tree
Hide file tree
Showing 7 changed files with 518 additions and 0 deletions.
152 changes: 152 additions & 0 deletions src/EthAddress/__snapshots__/EthAddress.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,44 @@ exports[`EthAddress component sanity matches default snapshot 1`] = `
pointer-events: none;
}
.c2[type="color"] {
min-width: 3rem;
padding: 0;
}
.c2[type="color"]::-webkit-color-swatch-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.c2[type="color"]::-webkit-color-swatch {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.c2[type="color"]::-moz-color-swatch {
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.was-validated .c2:valid {
border-color: #28C081;
}
Expand Down Expand Up @@ -789,6 +827,44 @@ exports[`EthAddress component sanity matches default snapshot textLabels 1`] = `
pointer-events: none;
}
.c2[type="color"] {
min-width: 3rem;
padding: 0;
}
.c2[type="color"]::-webkit-color-swatch-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.c2[type="color"]::-webkit-color-swatch {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.c2[type="color"]::-moz-color-swatch {
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.was-validated .c2:valid {
border-color: #28C081;
}
Expand Down Expand Up @@ -1216,6 +1292,44 @@ exports[`EthAddress component sanity matches themed snapshot 1`] = `
pointer-events: none;
}
.c2[type="color"] {
min-width: 3rem;
padding: 0;
}
.c2[type="color"]::-webkit-color-swatch-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.c2[type="color"]::-webkit-color-swatch {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.c2[type="color"]::-moz-color-swatch {
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.was-validated .c2:valid {
border-color: #28C081;
}
Expand Down Expand Up @@ -1669,6 +1783,44 @@ exports[`EthAddress component sanity matches themed snapshot textLabels 1`] = `
pointer-events: none;
}
.c2[type="color"] {
min-width: 3rem;
padding: 0;
}
.c2[type="color"]::-webkit-color-swatch-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.c2[type="color"]::-webkit-color-swatch {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.c2[type="color"]::-moz-color-swatch {
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.was-validated .c2:valid {
border-color: #28C081;
}
Expand Down
76 changes: 76 additions & 0 deletions src/Field/__snapshots__/Field.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,44 @@ exports[`Field component sanity matches default snapshot 1`] = `
pointer-events: none;
}
.c4[type="color"] {
min-width: 3rem;
padding: 0;
}
.c4[type="color"]::-webkit-color-swatch-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.c4[type="color"]::-webkit-color-swatch {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.c4[type="color"]::-moz-color-swatch {
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.was-validated .c4:valid {
border-color: #28C081;
}
Expand Down Expand Up @@ -190,6 +228,44 @@ exports[`Field component sanity matches themed snapshot 1`] = `
pointer-events: none;
}
.c4[type="color"] {
min-width: 3rem;
padding: 0;
}
.c4[type="color"]::-webkit-color-swatch-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.c4[type="color"]::-webkit-color-swatch {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.c4[type="color"]::-moz-color-swatch {
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.was-validated .c4:valid {
border-color: #28C081;
}
Expand Down
76 changes: 76 additions & 0 deletions src/Form/__snapshots__/form.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,44 @@ exports[`Form component sanity matches themed snapshot 1`] = `
pointer-events: none;
}
.c6[type="color"] {
min-width: 3rem;
padding: 0;
}
.c6[type="color"]::-webkit-color-swatch-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.c6[type="color"]::-webkit-color-swatch {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.c6[type="color"]::-moz-color-swatch {
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.was-validated .c6:valid {
border-color: #28C081;
}
Expand Down Expand Up @@ -483,6 +521,44 @@ exports[`Form component sanity renders children elements 1`] = `
pointer-events: none;
}
.c6[type="color"] {
min-width: 3rem;
padding: 0;
}
.c6[type="color"]::-webkit-color-swatch-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.c6[type="color"]::-webkit-color-swatch {
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.c6[type="color"]::-moz-color-swatch {
height: 2rem;
width: 2rem;
border: none;
border-radius: 100%;
}
.was-validated .c6:valid {
border-color: #28C081;
}
Expand Down
Loading

0 comments on commit d24ebe9

Please sign in to comment.