Skip to content
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

Change :valid hack to class not-empty for inputs (also add email type) #170

Merged
merged 5 commits into from
Dec 24, 2014

Conversation

ButuzGOL
Copy link
Contributor

1b61b7a
Also fix for
Uncaught TypeError: Cannot read property 'getDOMNode' of undefined
focus: function() {
if (this.isMounted()) this.refs.input.getDOMNode().focus();
},

@ButuzGOL ButuzGOL force-pushed the issue-55-make-class-instead-valid branch from 0278528 to 1b61b7a Compare December 20, 2014 08:38
@ButuzGOL
Copy link
Contributor Author

@hai-cea done

@@ -98,12 +98,12 @@
box-sizing: border-box;
padding-bottom: 14px;

&[type='text'], &[type='password'] {
&[type='text'], &[type='password'], &[type='email'] {
Copy link
Contributor

Choose a reason for hiding this comment

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

It appears we want to style a wide range of HTML5 inputs. For completeness sake, it would make sense to add type selectors for inputs like tel, number, url, search, etc.

http://html5doctor.com/html5-forms-input-types/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is an issue #55
So I think it's better to discuss what exact type are going to be supported
Because for example I tried color picker and it looks no good

@cobbweb
Copy link

cobbweb commented Dec 22, 2014

Would using a classSet be a better option?

@ButuzGOL
Copy link
Contributor Author

Would using a classSet be a better option?

Yes you right its more cleaner

@hai-cea
Copy link
Member

hai-cea commented Dec 22, 2014

@ButuzGOL Looks like some recent commits caused a conflict. Can you resolve please?

Conflicts:
	src/less/components/input.less
@ButuzGOL
Copy link
Contributor Author

@hai-cea done

hai-cea added a commit that referenced this pull request Dec 24, 2014
Change :valid hack to class not-empty for inputs (also add email type)
@hai-cea hai-cea merged commit 892cce7 into mui:master Dec 24, 2014
@hai-cea
Copy link
Member

hai-cea commented Dec 24, 2014

Thanks @ButuzGOL !

@zannager zannager added the package: system Specific to @mui/system label Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants