-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: master
Are you sure you want to change the base?
Conversation
Just waiting for PR #57. |
5df338d
to
ae76d81
Compare
0ec0a66
to
8e26a12
Compare
Screenshots after master merge: ubuntu-windows-screenshots.zip Ready for the first review |
…ng for webkit excluding disabled and error states
…han using pseudos
…ge below the set.
a7f0e6e
to
0052cdd
Compare
… if needed (checkboxes, radios)
Thanks @zolhorvath for all the work! |
I'm sure that this changed during the development :( |
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 😔 |
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.
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)
@ckrina Checkbox fixed. Updated screenshots (with the updated checked error state): Checkboxes Radios - Ubuntu and Windows.zip |
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? |
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. |
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. |
…ldset type is defined before comparing
@lauriii could you please give us examples? |
Issue
This PR fixes #15 and fixes #19 .
Screenshot / UI changes
See #63 (comment)
Testing instructions
https://github.com/zolhorvath/seven-refresh/
asdrupal-profile
(sevenrefresh
) to a Drupal project.core/themes/seven
themes/custom/seven
core/misc
tothemes/custom/misc
yarn && yarn build:css
in the theme's rootsevenrefresh
. This will enable additional field types such astelephone
ordate_range
and enablestyleguide
Drupal modules.After that Drupal is installed, Styleguide will be the front page and you'll have the test form at
/contact/checkbox_radio
.