Skip to content

Script to fetch focus-visible polyfill from npm and copy into source tree - #7456

Merged
gtritchie merged 1 commit into
masterfrom
bugfix/focus-visible-home-page
Jul 27, 2020
Merged

gtritchie merged 1 commit into
masterfrom
bugfix/focus-visible-home-page

Conversation

@gtritchie

Copy link
Copy Markdown
Member
  • When I added option to disable this polyfill for those who want to see less focus rectangles (Add user option to turn off focus rectangles via FocusVisible polyfill #7351) I moved the files into a client bundle, forgetting that they are also used by auth page
  • To fix, created a script for fetching and copying as we do for several other such dependencies; clunky, but at least documents where it comes from and where it goes.
  • This also takes the most recent version, containing a couple of very minor fixes

…tree

- When I added option to disable this polyfill for those who want to see less focus rectangles (#7351) I moved the files into a client bundle, forgetting that they are also used by auth page
- To fix, created a script for fetching and copying as we do for several other such dependencies; clunky, but at least documents where it comes from and where it goes.
- This also takes the most recent version, containing a couple of very minor fixes
@gtritchie gtritchie added this to the v1.4 milestone Jul 27, 2020
@ricardofandrade

Copy link
Copy Markdown
Contributor

A few things are still not clear to me:

  • Do we still use focus-visible anywhere other than the sign in page?
  • If not, do we still need to use it during sign-in?

My expectation was that we would end up removing this dependency.

@gtritchie

Copy link
Copy Markdown
Member Author
  • Do we still use focus-visible anywhere other than the sign in page?

Yes, we use it on sign-in page.

It is also widely used in the main IDE UI, but is now optional based on a user preference and loaded on-demand from a GWT ClientBundle. This mechanism is not available on the pre-GWT sign-in page, so this change just puts the files back (as flat files) where they were before, while also continuing to bundle them for GWT.

@ricardofandrade ricardofandrade 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.

Thanks for the explanation @gtritchie , LGTM!

@gtritchie
gtritchie merged commit 7054c86 into master Jul 27, 2020
@gtritchie
gtritchie deleted the bugfix/focus-visible-home-page branch January 21, 2022 17:12
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.

2 participants