-
Notifications
You must be signed in to change notification settings - Fork 2.6k
blue border when clicking on buttons/icons on rewards page #1438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc @petemill @jenn-rhim @bradleyrichter @rossmoody for their input if we should remove it |
IMO this does look weird. I’d vote to remove the border |
Yup, agreed 100%. I'm not sure if this was intentional, but it seems like a bug. Clicking on UI items shouldn't reveal the border for each element unless it's required to give the user some feedback. But in this case, I'm not sure it's warranted (if it was added by design that is). |
this is default behaviour for buttons. It's not so much about design, but about accessibility. More on this link https://www.tjvantoll.com/2013/01/28/stop-messing-with-the-browsers-default-focus-outline/ |
@nejc we are handling the accessibility by making it clear which item is clicked - the button background as well as the content string inside and outside of the button becoming bold. We can remove the outline. |
@jenn-rhim outline tells you on which button you are before you click if you are using keyboard, so we are not handling this case right now if we remove outline |
@nejc we can remove it for the mouse users by a:active {outline:none;} and leave the outline for the users using the key? |
yes we can do that |
I think at one point in history, these accessibility highlights could be invoked with a key combo, or only appear when a tab key is pressed to navigate sequentially. Ideally we can apply a tab-key activation requirement so they NEVER appear using your mouse alone. |
I think regardless of whether or not we keep the border in this specific instance we should probably style and pad these button with a rounded secondary button type of aesthetic even if it’s invisible. A lot of the broken feeling comes from the icon pushing a box out of the bottom of the rectangle. |
this was fixed as @rossmoody said. We have box around now |
Description
Clicking on buttons/icons on the rewards page shows a blue border around the asset. Settings icons, Add/Manage Funds text and icons have it, etc.
Steps to Reproduce
Actual result:
Blue border is displayed. This looks especially odd in some scenarios:

Expected result:
No border.
Reproduces how often:
easily
Brave version (chrome://version info)
Reproducible on current release:
Website problems only:
Additional Information
cc @kjozwiak
The text was updated successfully, but these errors were encountered: