Problem/Motivation

The focus style of the password field overlaps the password strength indicator bar and distorts the sharpness and colours of the indicator.


Proposed resolution

A fix with CSS, some suggestions:
- Add a small margin above the indicator which clears it of the focus area.
- Increase the height of the indicator bar.
- Position the indicator on the z-index so it sits ontop of the focus (not recommended).

Remaining tasks

Discuss solution
Write a patch
Test patch + upload patch and Screenshots.
Patch review + screenshots.

User interface changes

Improves visibility of password strength indicator.

API changes

n/a

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ByronNorris’s picture

Status: Active » Needs review
FileSize
40.01 KB
379 bytes
378 bytes

Here's a quick mockup of the password strength bar:

  • Shifted down .5 em
  • Height raised to .75 em

mockup of password strength bar shifted down and height increased

emma.maria’s picture

Issue tags: +Needs usability review

I prefer the margin solution, I can't stand the blue focus bleeding into the colours even with the height increase. Having a space makes both parties crisper. Also I only just noticed from my original screenshots that the text field has slight rounded corners and the password is square and they don't look good touching in my opinion.

Bojhan’s picture

Issue tags: -Needs usability review

I agree. Could you try playing a bit with the margin though - I am not sure if 0.45 or 0.52 work better (random values I tried).

astrocling’s picture

I agree with @emma.maria. I like the Margin option better, it looks a bit cleaner. As for the amount of margin, it seems like more of a personal preference to me. What you have looks fine, personally a little more, like @bohan's .52 recommendation looks a little bit better. But again that is just a personal eye thing at that point. I do like it broken up a bit, and the .52em does that well.

ByronNorris’s picture

From right to left:

  • 1) .45em margin-top
  • 2) .52em margin-top
  • 3) .50em margin-top, .75em height

mockup of password strength bar with .45em, .52em top margin, and .5em top margin with .75em height

I've attached diffs of each change as well.

LewisNyman’s picture

@bluegriff Thanks this is awesome, I like the increased height of patch 3. I think we should go with that.

peterjlord’s picture

Just tested the patch on a clean install. Great UI improvement. Little things like this make for a great release

LewisNyman’s picture

Status: Needs review » Needs work

Ok, let's go with the third patch. We need to rename the file type to .patch and change .5em to 0.5em

ByronNorris’s picture

Excellent! Here's the updated patch file for the third option.

astrocling’s picture

Status: Needs work » Reviewed & tested by the community

I agree with this option, I think it looks nice. The patch appears correct for me and tests correctly when I applied it, and is in the right format.

G-raph’s picture

Issue tags: +FUDK

Looks good and is fine by me. Good work!

webchick’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs manual testing

Wow, great work and great testing on this!

Now the only problem is this is modifying user.css (meaning, all themes) but I only see testing in Seven. Could we get a quick run-through in Stark and Bartik as well? (Doesn't have to be super comprehensive like #5; just enough to show it doesn't mess up the display.)

LewisNyman’s picture

Good point, here are the screenshots.

The user edit screen in Bartik

Bartik looks good to me, Stark looks a little weird but not broken.

ByronNorris’s picture

FileSize
18.21 KB

Bartik looks a-ok. Stark does indeed look weird, but it was weird pre-patch :D

screenshot comparing password strength indicator with stark screen active

LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community

That's true, let's go!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Awesome, thanks for the testing! Sorry that this dropped off my radar for a week there. :(

Committed and pushed to 8.x. Thanks!

LewisNyman’s picture

Status: Fixed » Reviewed & tested by the community

No push?

LewisNyman’s picture

Assigned: Unassigned » webchick

I don't know what the correct process is here but I'll assign it to Angie in case she misses it :)

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Bah! Thanks. Got it this time. :)

  • webchick committed b0ce906 on 8.0.x
    Issue #2318677 by bluegriff | emma.maria: Fixed Password field focus is...
LewisNyman’s picture

Assigned: webchick » Unassigned

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.