Skip to content
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

Add an inset to buttons when they're pressed #265

Closed
tofumatt opened this issue Jan 30, 2018 · 3 comments
Closed

Add an inset to buttons when they're pressed #265

tofumatt opened this issue Jan 30, 2018 · 3 comments
Assignees
Milestone

Comments

@tofumatt
Copy link

I think adding a one-pixel shift on click to buttons would improve accessibility. Here's a demo:

2018-01-30 19 45 49

Without this only colour/border is changed onClick of a button. Even as someone without colourblindness I find this to be so subtle as to sometimes not notice. I'd think colourblind users may not notice the mild colour shift in the button as the only indicator that it was pressed. I also just think it adds more visual notification that the button is being pressed.

@aminalhazwani aminalhazwani added this to the v0.6.7 milestone Feb 6, 2018
@aminalhazwani
Copy link
Contributor

Hey @tofumatt thanks for the feedback! I think that here we have a similar issue as #264. I believe that the colors that are being used for this buttons (at least in the screenshot) are not the ones suggested by the design system. When we chose the colors we also tested them on a screen with a greyscale color space and we were content with the result, long story short the inset is not necessary.

p.s. buttons should not use the cursor: pointer property as they are actions and not links. cursor: pointer is recommend for links only.

@tofumatt
Copy link
Author

tofumatt commented Feb 12, 2018

I'm importing the colours right from photon-colors and using the ones on the design system site; if things look off maybe it's the GIF compression or something. Thanks though: I'll clear up the cursor: pointer issue.

My main issue here about adding a text shift on click though; it makes the button feel "pressed". I don't think #264 is related; this is about the 1px shift in content for all buttons.

@aminalhazwani
Copy link
Contributor

aminalhazwani commented Feb 12, 2018

Yeah sorry @tofumatt, I should have been more clear! My mention to #264 was regarding the GIF/image compression possibly making the colors look off 😅 (BTW we are very happy to see that you're pulling in colors with the NPM module).

I understand your point about making the button feel pressed but we checked with the team and it's not something that Photon wants to pursue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants