-
Notifications
You must be signed in to change notification settings - Fork 136
Conversation
d247f5d
to
af5561d
Compare
box-sizing: border-box; | ||
background-image: url(${Background}); | ||
background-repeat: no-repeat; | ||
background-position: ${p => p.status === 'enabled' ? '0 -15px' : '0 0'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100% personal preference, but thought this element was riding a little high:
background-position: ${p => p.status === 'enabled' ? '0 -5px' : '0 0'};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good but deferring to @karenkliu
Love the interactivity polish here. So nice. 🎉 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rossmoody for your comments - I was initially confused as well, but Cezar has implemented a Tab + Space rather than Tab + Enter to trigger the interaction and it works as expected.
@cezaraugusto I have tested your focus states in the link you sent https://brave-ui-959w0ii2u.now.sh and it looks good to go.
Duh, I was pressing enter and not spacebar. That's a great addition. No issue. Just to be sure. This is what I'm seeing: https://d.pr/i/9kiate which seems tight in comparison to your Sketch doc: https://d.pr/i/SU6cWx Fixed via: #382 (comment) |
Will the production version support enter rather than space, or is it all space4lyf? |
Dismissing my review - I didn't realize this PR would close #2565 and #1892 as well. There are still pending changes for those issues.
c598b03
to
e949fb0
Compare
@tomlowenthal disabled users should do their flow with the keys they expect to work which are tab for navigation, space for toggles and space and Enter for button actions. not usual to have Enter in other actions, although it can be implemented without any burden |
Thanks Cezar. I guess I'm not up on the keyboard-a11y norms. Definitely we should do whatever is the standard/expected thing. And thanks for showing me |
I dismissed my review but after going over these issues with Cezar, this PR addresses #2566, #1894, and #1892 - good to go. 👍 |
e949fb0
to
71d252d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Just some feedback on the icons where I think the generated file is not working out.
after deliberating with @rossmoody and @petemill we're going to use the default brave-ui carat icon for now, which will be changed to something more closer to the original Shield spec defined TBD in a follow-up. this is what is looks like right now: since there are no other code comments I'm going to land this so we can quickly start porting everything to brave-core |
This reverts commit 77240a9.
This reverts commit 77240a9.
address brave/brave-browser#2565
address brave/brave-browser#1894
address brave/brave-browser#1892
Changes
Mostly refactor everything under
shields/
Test plan
Note: There was a change in the
Toggle
element that is also shared with the private new tab. I'll handle this when porting to brave-core.Note 2: Design feedback and review was made by @karenkliu and should be good to go unless her or someone else from the design team says otherwise.
onClick
would trigger.Link / storybook path to visual changes
Integration
Does this contain changes to src/components or src/
Does this contain changes to src/features for brave-core?