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

fixed the error dialogue boxes to match best practice as specified on ht... #32

Merged
merged 2 commits into from
Nov 17, 2014

Conversation

nlintz
Copy link
Contributor

@nlintz nlintz commented Nov 1, 2014

Fixed styling to match
http://foundation.zurb.com/docs/components/abide.html
solved #194
reviewed by: @jiahuang @Frijol

screen shot 2014-11-01 at 3 09 06 pm

@Frijol
Copy link
Member

Frijol commented Nov 3, 2014

@Frijol
Copy link
Member

Frijol commented Nov 3, 2014

lgtm

input(name='password', type='password', placeholder='password')
.large-6.columns.end(class="#{loginErr ? 'error' : ''}")
label(for="username") Password
input(name='password', type='password', placeholder='password' id='username')
Copy link
Contributor

Choose a reason for hiding this comment

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

are we using id for anything? should it be username or 'password' here?

@nlintz
Copy link
Contributor Author

nlintz commented Nov 17, 2014

@"are we using id for anything? should it be username or 'password' here?"

We set the id attribute so the label is associated the the input. Right now clicking the label highlights the input because the label is the parent of the input field. If we change that in the future, setting the id will guarantee that clicking the label will highlight the input.

jiahuang added a commit that referenced this pull request Nov 17, 2014
fixed the error dialogue boxes to match best practice as specified on ht...
@jiahuang jiahuang merged commit 993aa5f into master Nov 17, 2014
@Frijol Frijol deleted the nl-fix-login-error-styling branch November 17, 2014 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants