Skip to content

use focus-visible polyfill on sign-in page - #5887

Merged
gtritchie merged 1 commit into
masterfrom
bugfix/login-focus-indicators
Dec 13, 2019
Merged

gtritchie merged 1 commit into
masterfrom
bugfix/login-focus-indicators

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Fixes #5557

  • import the same polyfill used in the main IDE
  • tweaked focus style for the Sign In button; it is solid blue and very hard to see our standard focus rectangle, so put in an offset
  • fixed various html / css issues:
    • align="center" is deprecated on <table> so use css, instead
    • collapse padding-left/right/top/bottom to single-line form
    • added <body> to the page
    • removed duplicate autocomplete attribute on password <input>
    • fix nesting of <p> in another <p> (not allowed), replaced outer one with <div> and correct closing tags which were messing with the nesting (confusing to look at because this file isn't indented consistently, but same tool that saw the busted HTML nesting now confirms it is correct); after this checkin I may run an auto-indent on this file and check it in again

That last issue actually manifested in screen readers; they'd announce a confusing extra "group" due to that messed up nesting.

Here's the styling, same thing as in the IDE on text fields, and extra padding on the Sign In button:

2019-12-12_21-21-34

2019-12-12_21-21-54

- also fixed some html / css issues:
    - `align="center"` is deprecated on `<table>` so use css, instead
    - collapse padding-left/right/top/bottom to single-line form
    - added `<body>` to the page
    - removed duplicate `autocomplete` attribute on password `<input>`
    - fix nesting of `<p>` in another `<p>` (not allowed), replaced outer one with `<div>` and correct closing tags which were messing with the nesting and causing screen readers to see an extra group
@gtritchie gtritchie added this to the v1.3 milestone Dec 13, 2019
@gtritchie
gtritchie requested a review from adamconroy December 13, 2019 05:43

@adamconroy adamconroy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@gtritchie
gtritchie merged commit 78817ea into master Dec 13, 2019
@gtritchie
gtritchie deleted the bugfix/login-focus-indicators branch December 13, 2019 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server login page doesn't always show keyboard focus

2 participants