Skip to content

Conversation

@nicko-winner
Copy link
Contributor

@nicko-winner nicko-winner commented Jul 31, 2020

Using container prefix to describe the outer most tag. IE: containId, or containsClass, decided against taking the className going to the input, as maybe some one one might want to apply a class directly to the input.
^After seeing developers interact with these components, it seems like the more intuitive approach is to expect the className goes on the parent most element. Putting class names wrapping element to improve developer experience.

I decided against adding help & error props to inputs. I was missing some helix styles for help. Rather than invent the wheel I think I will wait until helix forms comes out.

- Using `container` prefix to describe the outer most tag. IE: containId, or containsClass
@netlify
Copy link

netlify bot commented Jul 31, 2020

Deploy preview for helix-react ready!

Built with commit 4e3639a

https://deploy-preview-106--helix-react.netlify.app

Copy link
Contributor

@michaelmang michaelmang left a comment

Choose a reason for hiding this comment

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

👍 Looks good

After seeing developers interact with these components, it seems like the more intuitive approuch is to expect the className goes on the parent most element. Putting class names wrapping element to improve developer experience.
@nicko-winner nicko-winner changed the title Text & Text Area Text, Text Area, Switch, Pill Aug 14, 2020
Copy link
Contributor

@michaelmang michaelmang left a comment

Choose a reason for hiding this comment

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

Awesome work 😎

@100stacks 100stacks added this to the v1.0.0-alpha.0 milestone Aug 17, 2020
@100stacks 100stacks added the enhancement New feature or request label Aug 17, 2020
Copy link
Member

@100stacks 100stacks left a comment

Choose a reason for hiding this comment

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

Please see comment below. Most are just for my understanding. Thanks.

required: PropTypes.bool,
label: PropTypes.bool,
name: PropTypes.string,
onChange: PropTypes.func,
Copy link
Member

Choose a reason for hiding this comment

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

I've noticed this on a few components, just wanted to verify that onChange is optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep onChange is optional (in my mind). One can actually use any handler, onKeyUp, OnKeyDown, etc... since we pass them all on the the component etc .I would consider them all optional, but most likely a developer would want to use one of them, unless they are using a traditional form submissions (without REST call), i'm sure those use cases still exist as rare as they are.

Copy link
Contributor Author

@nicko-winner nicko-winner Aug 19, 2020

Choose a reason for hiding this comment

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

all the different handlers could all live in the propTypes though I do wonder once we switch over to typeScript we will also not need to ship all the propType stuff in the bundles. if your ok with it, lets handle any major changes to event handler propTypes in another PR.

Copy link
Member

Choose a reason for hiding this comment

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

I agree with you @nicko-winner. I don't think we'll have TypeScript support for alpha, so I'm all for holding off.

Copy link
Member

@100stacks 100stacks Aug 19, 2020

Choose a reason for hiding this comment

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

I'm all for getting an alpha release out sooner, then we can iterate as needed.

- Switch updates
- Proptypes updates
Copy link
Member

@100stacks 100stacks left a comment

Choose a reason for hiding this comment

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

AWESOME WORK!!! 🎉 👍

Dev LGTM

@100stacks 100stacks merged commit cdd7519 into master Aug 19, 2020
@100stacks 100stacks deleted the TextAndTextArea branch August 19, 2020 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants