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

Update button colours #164

Open
ulde01 opened this issue Sep 22, 2021 · 0 comments
Open

Update button colours #164

ulde01 opened this issue Sep 22, 2021 · 0 comments

Comments

@ulde01
Copy link

ulde01 commented Sep 22, 2021

Design update: 2021-09-07

Change

(Old colour in parentheses)

1. Primary Button

  • Default background: Dark Blue 2 (was Dark blue 1)
  • Hover: Dark Blue 1 (Blue)
  • Pressed: Dark Blue 1 (Blue)

2. Secondary Button

  • Hover: Dark Blue 1 (Blue)
  • Pressed: Dark Blue 1 (Blue)
  • Disabled border and text Grey 500 (disabled background: Grey 200)

3.a. Ghost button light

  • Disabled border and text: Grey 500 (disabled background: Grey 200)
  • Disabled background: Transparent
  • Focus gradient: Box-shadow - 0 0 6px 1.5px in 90% white
  • Focus text: White

3.b. Ghost button dark

  • Disabled border and text: 50% White (disabled background: Grey 200 and text: Grey 500)
  • Focus gradient: box-shadow - 0 0 6px 1.5px in Grey 700 (4 px outline in Blue, box-shadow: 0 0 4px 1px in Blue)
  • Focus background: #333 (focus background: White)
  • Focus text: White

4. Button link

  • Hover: Dark Blue 1 (Blue)
  • Pressed: Dark Blue 1 (Blue)
  • Disabled text: Grey 500 (disabled background: 200)
  • Focus: Gradient 4 px outline in Blue, box-shadow: 0 0 4px 1px in Blue 7

7. More button

  • Hover background: Dark Blue 1 (Blue)
  • Pressed: Dark Blue 1 (Blue)

Reason

To reach accessibility in terms of contrast we have changed our primary blue buttons to the darkest blue (Dark Blue 2 #007ac7). This means that other states are affected needed colour adjustments.

The disabled state on a few button variations is updated to mirror their normal state. An example, if normal state is a secondary button with an outline, the disabled state with have an outline in Grey 500 and link text in Grey 500 (compared to the previous solid background in Grey 200 for all disabled buttons).

Details

https://designlibrary.sebgroup.com/components/component-button

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

1 participant