Skip to content

#621 Show caps lock on sign in#673

Merged
joshi1983 merged 2 commits intohhaccessibility:masterfrom
M4ttoF:621
Aug 8, 2018
Merged

#621 Show caps lock on sign in#673
joshi1983 merged 2 commits intohhaccessibility:masterfrom
M4ttoF:621

Conversation

@M4ttoF
Copy link
Copy Markdown
Collaborator

@M4ttoF M4ttoF commented Jul 31, 2018

No description provided.

</div>
<div class="col-xs-12">
<input class="clean" name="password" type="password" placeholder="Password" value="{{ old('password') }}">
<div id="capsLock" class="capsLock" style="display:none;">CapsLock is on!!
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  • Add the icon you mentioned in the issue.
  • Use italics to get more attention.

@extends('layouts.default', ['body_class' => 'nav-profile'])
@section('content')

<link href="/css/jquery/jquery-ui.css" rel="stylesheet" type="text/css">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If you just need to use $ for your password_caps.js, include <script src="/js/jquery-3.1.1.js"></script>

It looks like the jquery ui, extra css... aren't needed.

Including jquery-3.1.1.js is what various parts of the site do including home, rating, location search... The profile uses some jquery ui for the accordion plugin but you won't need something like that for the caps lock detection.

</div>
<div class="col-xs-12">
<input class="clean" name="password" type="password" placeholder="Password" value="{{ old('password') }}">
<div id="capsLock" class="capsLock" style="display:none;">CapsLock is on!!
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Try to make the caps lock message look more like this:
image
The exclamation mark that you posted in the issue looked good so that's what I was going for in that image.

Here is some inline styles I added for the above screenshot but please move them into the _sign_in.scss file.
image

@M4ttoF
Copy link
Copy Markdown
Collaborator Author

M4ttoF commented Aug 8, 2018

updated the PR and now look just like you asked
image

@joshi1983
Copy link
Copy Markdown
Collaborator

The updates to app/package-lock.json aren't clearly needed. They were commited with the commit that says "Looks better now and includes icon". If you remove those changes, this pull request should be ready for merge.

Ideally, undo the changes and squash or fixup them into the "Looks better now and includes icon" commit to save a little space and help the 'git blame' feature point out more useful commits.

If want an idea for how to undo the changes, I would:

  1. git checkout the master branch.
  2. Copy the app/package-lock.json file to another file.
  3. git checkout your issue branch.
  4. Delete the app/package-lock.json file and rename the other file to app/package-lock.json.
  5. Commit that change to app/package-lock.json.
  6. git rebase -i master
  7. fixup your new commit up into "Looks better now and includes icon"

@joshi1983 joshi1983 merged commit 9db757f into hhaccessibility:master Aug 8, 2018
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.

2 participants