Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Solved issue #313 - Button not visible properly #971

Merged
merged 4 commits into from
Mar 8, 2017

Conversation

anishaswain
Copy link
Contributor

@anishaswain anishaswain commented Mar 4, 2017

Fixes #313 .

Changes proposed in this pull request:
the disabled,active and hover buttons color states to a more understandable manner

passes WCAG AA contrast accessibility test as #972

  1. The background color of Cancel Button in active state is changed from $red_light to #08987f and font color is changes from $red to $white to give it a brighter view.

  2. The background color of Cancel Button on hover state changes to background color rgba(255,109,111,0.75) i.e $red_lighter and font color changes to rgba(113,18,20) i.e $brown to help indicate what its function is.

  3. The background color of Add Button in disabled state is changed from $green to #dbebff and font color is changes from $white to $black to give it a better and lighter disable color.

  4. The background color of Add Button in active state is changed from $blue_light to #ff6d6f and font color is changes from $navy to $white to clearly signify the button activation.

  • Previous state of button (In new appointment page)
  1. Button Disabled state

olddisable

  1. Button Active state

oldactive

  1. Button On-hover state

oldhover

  • Current state of button

    1.Button Disabled state

newdisabled

2.Button Active state

newactive

3.Button On-hover state

newonhover

Note: After this pull request the colours will make more sense

cc @HospitalRun/core-maintainers

@jkleinsc
Copy link
Member

jkleinsc commented Mar 6, 2017

@jglovier can you review this? Does this help towards resolving #972?

Copy link
Member

@jglovier jglovier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anisha1234 this is a great step in the right direction. There is a larger problem of establishing consistent button patterns/styleguides for the entire app that still needs to be solved for, but I think this gets us some great forward momentum toward that goal in the meantime.

I may make some tweaks to these as that works plays out, but I'm 👍 on getting this fix merged in right now.

Left a few comments, but otherwise LGTM. ⚡

@@ -31,6 +32,7 @@ $sidebar_icon_lighter: $navy_light;
$sidebar_sublink_text: #c2d2e3;
$view_sub_nav: #6784a2;
$content_border: $blue_lightest;
$brown: #711214;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't see in the screenshots where this color gets applied (and am unable to checkout the branch right now). Can you post a screencap of where this brown is used specifically please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screenshot

the $brown colour is used as font-colour of Cancel button on-hover state

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but the screenshot I was looking for was of the UI showing the color in use. :-)

background-color: $blue_light;
color: $navy;
background-color: #08987f;
color: $white;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about swapping the hover styles with the values you've set on lines 3 and 4, so the lighter version is the default, and the hover version is the darker version? That would help keep the default state closer to the brand green.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have swapped the hover style with active state style of Add button in the third commit.

  • Active version is lighter version as default state
  • Hover version is darker version
    please check review the commit and suggest other invaluable changes

active state -
acive

hover state -
hover

@anishaswain
Copy link
Contributor Author

Thank you so much @jglovier . I would really like to work establishing consistent button patterns/styleguide in the whole app regarding issue #972

@jkleinsc
Copy link
Member

jkleinsc commented Mar 8, 2017

Looks good to me @anisha1234. I am going to merge this PR in. Thanks for making HospitalRun better!

@jkleinsc jkleinsc merged commit cab65ea into HospitalRun:master Mar 8, 2017
@jglovier
Copy link
Member

jglovier commented Mar 8, 2017

@anisha1234 thanks again for your work on this PR. 🎉

I would really like to work establishing consistent button patterns/styleguide in the whole app regarding issue #972

Sounds great. Once I get an issue or PR going to specifically address that, I'd love your input there. ⚡

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

Successfully merging this pull request may close these issues.

3 participants