• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
 
Filters
5 results tagged checkbox

Inclusively Hiding & Styling Checkboxes and Radio Buttons

QRCode

When you hide an interactive element, make sure you choose a hiding technique that keeps it screen reader-accessible, position it on top of whatever is visually replacing it so that a user navigating by touch can find it where they expect to, and then make it transparent.

https://www.sarasoueidan.com/blog/inclusively-hiding-and-styling-checkboxes-and-radio-buttons/
February 27, 2025 at 3:50:11 PM EST *
checkbox css accessibility webdesign forms
FILLER

Pure CSS Custom Styled Radio Buttons | Modern CSS Solutions

QRCode

Learn to create custom, cross-browser, theme-able, scalable radio buttons in pure CSS and ensuring styles remain accessible across states.

Also checkboxes:
https://moderncss.dev/pure-css-custom-checkbox-style/

https://www.sarasoueidan.com/blog/inclusively-hiding-and-styling-checkboxes-and-radio-buttons/

https://moderncss.dev/pure-css-custom-styled-radio-buttons/
October 29, 2021 at 11:36:14 AM EDT *
checkbox forms buttons webdesign
FILLER

Centering checkboxes with multi-line labels

QRCode

Checkboxes are the worst
But I'm here to help make them better.

Here's an approach I use to always perfectly center them with the first line of text, no matter the text length or size

https://codepen.io/adamwathan/pen/bGNxMpz?editors=1000
September 29, 2021 at 10:09:33 AM EDT *
webdesign forms checkbox
FILLER

Checkboxes make excellent buttons | Christian Heilmann

QRCode

I like to use checkboxes as buttons. And here’s how.

A checkbox is a binary state. It is checked or not. So instead of reading out the state in an event handler, I tend to read the checked property.

https://christianheilmann.com/2020/09/24/checkboxes-make-excellent-buttons/
October 5, 2020 at 11:52:06 AM EDT *
checkbox forms webdesign
FILLER

.prop() | jQuery API Documentation

QRCode
  • The .prop() method gets the property value for only the first element in the matched set.

  • $( elem ).prop( "checked" ) true (Boolean) Will change with checkbox state

  • $( elem ).attr( "checked" ) (1.6+) "checked" (String) Initial state of the checkbox; does not change

According to the W3C forms specification, the checked attribute is a boolean attribute, which means the corresponding property is true if the attribute is present at all—even if, for example, the attribute has no value or is set to empty string value or even "false". This is true of all boolean attributes.

http://api.jquery.com/prop/
January 25, 2013 at 11:34:07 AM EST *
javascript jquery checkbox
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community