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

Apply new checkbox and radio styles #63

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

zolhorvath
Copy link
Contributor

@zolhorvath zolhorvath commented Nov 16, 2018

Issue

This PR fixes #15 and fixes #19 .

Screenshot / UI changes

01--checked-states--mac-os-x--chrome
02--checkbox-error-states--mac-os-x--chrome

See #63 (comment)

Testing instructions

  • Add https://github.com/zolhorvath/seven-refresh/ as drupal-profile (sevenrefresh) to a Drupal project.
  • Remove core/themes/seven
  • Make sure that this theme is installed to themes/custom/seven
  • Symlink core/misc to themes/custom/misc
  • Run yarn && yarn build:css in the theme's root
  • Install a Drupal with profile sevenrefresh. This will enable additional field types such as telephone or date_range and enable styleguide Drupal modules.

After that Drupal is installed, Styleguide will be the front page and you'll have the test form at /contact/checkbox_radio.

@zolhorvath
Copy link
Contributor Author

Current status

Just waiting for PR #57.

@zolhorvath zolhorvath force-pushed the task/issue-15-19 branch 3 times, most recently from 5df338d to ae76d81 Compare November 29, 2018 14:50
@zolhorvath zolhorvath force-pushed the task/issue-15-19 branch 2 times, most recently from 0ec0a66 to 8e26a12 Compare December 6, 2018 08:04
@zolhorvath
Copy link
Contributor Author

Screenshots after master merge:

ubuntu-windows-screenshots.zip
mobile-osx-screenshots.zip

Ready for the first review

@zolhorvath zolhorvath changed the title WIP: Apply new checkbox and radio styles Apply new checkbox and radio styles Dec 12, 2018
@zolhorvath zolhorvath requested review from lauriii and ckrina December 13, 2018 12:44
@ckrina
Copy link
Contributor

ckrina commented Dec 14, 2018

Thanks @zolhorvath for all the work!
The only thing I've seen is the styles for the error in the checkbox when it's checked. It should behave as the blue and the black: red background and white checked icon.

checkbox-error

@zolhorvath
Copy link
Contributor Author

The only thing I've seen is the styles for the error in the checkbox when it's checked. It should behave as the blue and the black: red background and white checked icon.

I'm sure that this changed during the development :(

@ckrina
Copy link
Contributor

ckrina commented Dec 14, 2018

I'm sorry, we removed the designs for this specific state during an accessibility review because it seemed no necessary, but finally it was added again just in case it was needed in the future. I'm not really sure when we added it again 😔

Copy link
Contributor

@ckrina ckrina left a comment

Choose a reason for hiding this comment

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

The checked checkbox with error should have the background red and the icon white, following the other checked states pattern. (sorry for repeating this, I initially posted it as a normal comment)

@zolhorvath zolhorvath changed the title Apply new checkbox and radio styles WIP: Apply new checkbox and radio styles Dec 19, 2018
@zolhorvath zolhorvath changed the title WIP: Apply new checkbox and radio styles Apply new checkbox and radio styles Dec 19, 2018
@zolhorvath
Copy link
Contributor Author

zolhorvath commented Jan 2, 2019

@ckrina Checkbox fixed.

Updated screenshots (with the updated checked error state):

Checkboxes Radios - Ubuntu and Windows.zip
Checkboxes Radios - Mobile and OSX.zip

ckrina
ckrina previously approved these changes Jan 3, 2019
@lauriii
Copy link
Contributor

lauriii commented Jan 3, 2019

The element contains a transition which isn't documented in the design system. @ckrina do we want to add the transition to the style guide or remove it from the CSS?

@lauriii
Copy link
Contributor

lauriii commented Jan 3, 2019

There are few instances of checkboxes created outside form API. We probably should open issue to Drupal.org to create JS theme function for checkbox and then override the markup in Claro.

@ckrina
Copy link
Contributor

ckrina commented Jan 3, 2019

I realized about the transition, but so far we haven't defined animation patterns and principles. It's one of that things we still need to work in, sorry. So maybe it can be documented somehow so we know where we're applying it so far and come back to it later on if it has to be modified.

@zolhorvath
Copy link
Contributor Author

zolhorvath commented Jan 8, 2019

There are few instances of checkboxes created outside form API

@lauriii could you please give us examples?

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

Successfully merging this pull request may close these issues.

Checkboxes style update Radio style updates
3 participants