You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UI: New focused states on inputs looks.... broken, for lack of a better word #7242
It seems like one of the recent version of RStudio included UI changes to add "focus states" to many inputs. While that's a very worthy cause, I think it wasn't implemented in a visually appealing way, and I actually thought I was seeing bugs initially. The light blue box that appears around inputs looks out of place and does not flow with the aesthetics very well. This is the first time I've ever had any negative feedback about anything UI related in RStudio - it had to happen eventually :)
To show a few examples:
Around the "Next"/"Prev"/"All" buttons in the Find toolbar, the box is not centered
The "Go to file/function" input, when you're focused inside it and start typing, the outline makes it look as if it's three entirey different components, the blue outline makes a very sharp cut around the input that confused me and made me take another look at where my cursor is
The commit message has rounded corners. But when you click on it to start typing, the outline around it is not rounded, yet you can still see the gray rounded corners peeking inside
I hope the UI of the focused-state feature will be improved to look more streamlined, or a way to disable it for those who don't need it and feel that it's a bit of a hindrance in its current form would be good too.
Reacted by Farbfetzen, Chengyang Ji and Mario Ferrini
In the case of the "go to file/function input", it is actually two components. You can separately focus the text field, and the "x" button next to it, so they do need separate focus indicators. But agree the presentation needs improvement, possibly including the cosmetic arrow in the rectangle for the textbox.
Verified Fixed on: RStudio Version - 1.4.747, R Version - 4.0.2, Windows 10 x64 - Desktop
The 'Always show focus outlines'option has been added to Global Options > Accessibility. The option appears to be functioning successfully (it does not disable ALL focus rectangles, but I did a general test and the remaining focus elements seem appropriate and not TOO obtrusive when the option is disabled).
Activity
gtritchie commentedon Jun 27, 2020
We will gradually improve look of these, it is a very time-consuming exercise given vast amount of UI and variations in the underlying HTML/CSS.
Agree an option to turn this off would be a good idea as well, given it won't be a quick fix to improve the look.
gtritchie commentedon Jun 27, 2020
In the case of the "go to file/function input", it is actually two components. You can separately focus the text field, and the "x" button next to it, so they do need separate focus indicators. But agree the presentation needs improvement, possibly including the cosmetic arrow in the rectangle for the textbox.
Add user option to turn off focus rectangles via FocusVisible polyfill
Add user option to turn off focus rectangles via FocusVisible polyfill (
daattali commentedon Jul 16, 2020
Regarding the question in the commit message: my suggestion "Always show focus outlines"
gtritchie commentedon Jul 16, 2020
@daattali I was being tongue-in-cheek with that question but your suggestion is a good one and I’ll change it to that.
daattali commentedon Jul 16, 2020
You didn't add a sacrasm tag :(
gtritchie commentedon Jul 16, 2020
No worries. 🙂
Change focus rectangle option description to "Always show focus recta…
Change focus rectangle option description to "Always show focus recta…
R-Hannibal commentedon Aug 27, 2020
Verified Fixed on: RStudio Version - 1.4.747, R Version - 4.0.2, Windows 10 x64 - Desktop
The 'Always show focus outlines'option has been added to Global Options > Accessibility. The option appears to be functioning successfully (it does not disable ALL focus rectangles, but I did a general test and the remaining focus elements seem appropriate and not TOO obtrusive when the option is disabled).