Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

New Component: Inputs #164

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

nashvail
Copy link
Contributor

No description provided.

@jquerybot
Copy link

Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA).

📝 Please visit http://contribute.jquery.org/CLA/ to sign.

After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know.


If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check.

@cvrebert
Copy link
Contributor

  • This should be opt-in via class(es). Applying styles to <input>s by default will break various third-party widgets.
  • I recommend including classes which can be used to force the same visual styling as the state pseudo-classes, for widgets which reimplement these states themselves.

"dist/chassis",
"mixins";

input[type=text],
Copy link
Contributor

Choose a reason for hiding this comment

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

What about input[type=date] etc.?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They're coming. I will keep updating this PR just like the other two I have opened until all is done. Like @geekman-rohit suggested to open a PR so that the code can be reviewed early on as I go.

@sfrisk
Copy link
Contributor

sfrisk commented May 31, 2016

I agree with @cvrebert - this is something we had discussed in the meeting about how styling default could break 3rd party items.

<!-- <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,400italic,700italic" rel="stylesheet"> -->
</head>
<body>
<h1>Inputs</h1>
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be useful to have labels and inputs together in this demo. Also some text description about the different inputs: http://view.css-chassis.com/master/demos/buttons.html

@sfrisk
Copy link
Contributor

sfrisk commented Jun 1, 2016

Is the demos/inputs/inputs.css file necessary? Looks empty. Also is there a reason for choosing to put input in its own folder?

name: "Transition animations",
value: {
"focus": "all .25s",
"blur": "all .1s"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be setting only the properties we want to transition here instead of using "all"? A quick google search gives me the impression it will be better performance wise to call out the properties.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sfrisk sfrisk added this to the Phase One milestone Jun 14, 2016
@cvrebert
Copy link
Contributor

Regarding the sizes, perhaps use maps so that users can add additional sizes just by adding entries to the maps?

@sfrisk
Copy link
Contributor

sfrisk commented Jun 21, 2016

<h2>Inputs - (Size: Default)</h2>

<h3>Checkboxes</h3>
<!-- Custom check boxes -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these inline but radio buttons aren't?

<!-- Custom Radio button -->

<h3>Radio buttons</h3>

Copy link
Contributor

Choose a reason for hiding this comment

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

Need a fieldset with a legend for this group of radio inputs

@sfrisk
Copy link
Contributor

sfrisk commented Jul 26, 2016

You can view these changes at: http://view.css-chassis.com/input-styling/demos/inputs.html

@sfrisk
Copy link
Contributor

sfrisk commented Jul 26, 2016

Hey your tests are failing. "There is an extra comma following the final element of an array or object literal at scss/variables/inputs.js."

value: {
"inset": "inset 0px 2px 2px 0px rgba(0,0,0,0.10)",
"focus": "0px 0px 2px 1px #03a9f4",
"error": "0px 0px 2px 1px #F44336",
Copy link
Contributor

Choose a reason for hiding this comment

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

remove comma

@sfrisk
Copy link
Contributor

sfrisk commented Oct 25, 2016

Normalize has been pulled in, which should fix some layout issues. Could you please rebase those changes into your develop branch.

@nashvail
Copy link
Contributor Author

@sfrisk sure!

@nashvail
Copy link
Contributor Author

nashvail commented Oct 26, 2016

I have rebased with the master branch. Please approve that the layout issues are fixed and I will squash and push the commits as one

Base automatically changed from master to main March 16, 2021 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants