Skip to content

Add user option to turn off focus rectangles via FocusVisible polyfill - #7351

Merged
gtritchie merged 2 commits into
masterfrom
feature/add-focus-rectangle-pref
Jul 16, 2020
Merged

gtritchie merged 2 commits into
masterfrom
feature/add-focus-rectangle-pref

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Fixes #7242

New checkbox on Accessibility options named "Show focus rectangles". @jmcphers suggested doing this preference when we first added the polyfill, finally getting around to it.

With this mode off, we go back to something closer to behavior in RStudio 1.2. We always displayed focus rectangles in some cases (typically on checkboxes, many text fields) but not on most custom controls. So this option doesn't eliminate all focus rectangles. I suppose I could name it "Show fewer focus rectangles"...

Note, turning off focus rectangles (FocusVisible) make #6518 look ever stranger; will tackle that next (just needs some mild styling tweaks).

Fixes #7242

New checkbox on Accessibility options named "Show focus rectangles".

With this mode off, we go back to something closer to behavior in RStudio 1.2, where we did show focus rectangles in some cases (typically on checkboxes and text fields) but not on most custom controls. So this option doesn't eliminate all focus rectangles. I suppose I could name it "Show fewer focus rectangles"?
@gtritchie gtritchie added this to the v1.4 milestone Jul 15, 2020
@gtritchie
gtritchie requested review from adamconroy and jmcphers July 15, 2020 05:02
@gtritchie
gtritchie merged commit b7f2b46 into master Jul 16, 2020
gtritchie added a commit that referenced this pull request Jul 27, 2020
…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 added a commit that referenced this pull request Jul 27, 2020
…tree (#7456)

- 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
@valerie-rstudio
valerie-rstudio deleted the feature/add-focus-rectangle-pref branch January 21, 2022 17:35
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.

UI: New focused states on inputs looks.... broken, for lack of a better word

3 participants