-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(text-input): add experimental text-input #1074
feat(text-input): add experimental text-input #1074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 - Thanks @alisonjoseph!
Oops, the staging link is wrong. sorry! @tw15egan This one definitely needs some design review/input. |
Okay, going to wait on design review before doing code review, as things may change |
@alisonjoseph can you add a preview link when you get a chance, so we can get design review? |
height: rem(40px); | ||
padding: 0 $spacing-xl 0 $spacing-md; | ||
color: $text-02; | ||
border: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
} | ||
|
||
.#{$prefix}--text-input[data-invalid], | ||
.#{$prefix}--text-input:invalid { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
.#{$prefix}--text-input[data-invalid], | ||
.#{$prefix}--text-input:invalid { | ||
outline: 1px solid $support-01; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outline should be 2px thick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
@aagonzales Is the label text the correct size? |
outline-offset: -2px; | ||
box-shadow: none; | ||
background: $field-01 | ||
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16" class="ibm-icons ibm-icons--error--filled"><path fill="#da1e28" d="M6.95 26.66A14 14 0 0 0 26.67 6.93zM16 2A14 14 0 0 0 5.35 25.07L25.08 5.34A13.93 13.93 0 0 0 16 2z"/></svg>'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IBM/carbon-developers thoughts on this for the error icon to avoid html changes for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice progress @alisonjoseph!
package.json
Outdated
@@ -167,6 +167,7 @@ | |||
"scripts": { | |||
"build": "gulp build", | |||
"build-dev": "gulp build:dev", | |||
"rollup": "gulp build:dev --rollup -e", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding in @alisonjoseph! Would it make sense to name it build-dev-rollup
to make it align with build-dev
? BTW -e
is for building experimental version of style - Probably we'd create build-dev-rollup
and build-dev-rollup-experimental
, like:
"build-dev-rollup": "gulp build:dev --rollup",
"build-dev-rollup-experimental": "gulp build:dev --rollup -e",
What do you think? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, will update the name. Thanks for the suggestion.
.#{$prefix}--text-input:disabled { | ||
cursor: not-allowed; | ||
// THIS SHOULD BE MOVED TO AN INLINE SVG IN NEXT MAJOR RELEASE | ||
background-image: url("data:image/svg+xml;charset=UTF-8, %3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' class='ibm-icons ibm-icons--error--filled' fill='%23bebebe'%3e%3cpath d='M6.95 26.66A14 14 0 0 0 26.67 6.93zM16 2A14 14 0 0 0 5.35 25.07L25.08 5.34A13.93 13.93 0 0 0 16 2z'/%3e%3c/svg%3e"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double-checking - Do you think usage this technique should be only temporarily? Something that came up to my mind is build toolchain addition to generate Sass variables from SVG, but I guess only if we'd ship this code to stable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is just temporary, I think the we should continue with inline svgs as our standard for stable releases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great!
Text Input FeedbackQuestion: can we use a smaller line for the field, like just "Place holder" or "Type here" so it doesn't cut off?
(See grabs) Helper text
(See helper_text grab) Disabled
Vertical center
|
Thanks for the feedback @jeanservaas http://carbon-dev-environment-optimistic-kangaroo.stage1.mybluemix.net/component/text-input--default
|
🎉 This PR is included in version 9.19.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
http://carbon-dev-environment-optimistic-kangaroo.stage1.mybluemix.net/component/text-input--default
closes #1094