Jump to content

Recommended Posts

Posted

No, I've accidently overwritten this version. But the second version is not accessible via keyboard anyhow. 

Damn... and I did it again! Now the pen https://codepen.io/baumrock/pen/pGXWxO has no shadow any more. It's the same as the second version but with grey border on focus to see it both on checked and unchecked state.

Does codepen not save different versions like jsfiddle does when saving??

Posted
27 minutes ago, bernhard said:

No, I've accidently overwritten this version. But the second version is not accessible via keyboard anyhow. 

Damn... and I did it again! Now the pen https://codepen.io/baumrock/pen/pGXWxO has no shadow any more. It's the same as the second version but with grey border on focus to see it both on checked and unchecked state.

Does codepen not save different versions like jsfiddle does when saving??

Doesn't work when implemented in my module: 

550485788_2019-02-2213-10-24.2019-02-2213_11_07.gif.62555381cfae64a403c47d47a4d53bbc.gif

Posted

I like the grey background, but I'd prefer a dark grey border instead of the green one. In your case when the checkbox is checked it looks as if the button gets smaller because you use the background color as border color. That's also a little worse for accessibility than a dark grey I think.

Posted

This version fits more into UIkit admin theme:

(I could think of a simple theme detection and use colors based on selected theme)

1023490192_2019-02-2218-17-43.2019-02-2218_19_49.thumb.gif.49896818ca854e96548dd3be9c4ac77b.gif

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...