Problem/Motivation

A single checkbox is rendered invisibly in a webform. Sets of checkboxes and radio buttons are fine.

Steps to reproduce

- Edit the default Sector contact form
- Add some checkboxes, including a single checkbox item
- The single checkbox won't appear, but the others will

It will look like this:

Sector Radix Starter checkboxes

Proposed resolution

Update webform.scss to support single checkboxes.

Remaining tasks

- review
- merge

User interface changes

API changes

Data model changes

Comments

xurizaemon created an issue. See original summary.

xurizaemon’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new6.89 KB
new11.55 KB

Not sure this is exactly what you'd have done, but this makes the single checkbox work!

It looks a bit funky 'cos I reversed the order in order to be able to target single checkbox first then set border-radius on the radios; single checkbox doesn't have a .form-item's parent class to target as the others do.

And: radios & checkboxes work still :)

fixed checkbox

xurizaemon’s picture

Issue summary: View changes

This affects 9.1.x also, and can be backported. I expect the patch applies there too as webform.scss wasn't changed recently.

danielveza’s picture

TY! Our front ender @gareth.poole put together a patch that looks very similar!

danielveza’s picture

StatusFileSize
new7.12 KB
danielveza’s picture

  • gareth.poole authored ee16456 on 9.2.x
    Issue #3232290 by xurizaemon, DanielVeza, gareth.poole: Single checkbox...
danielveza’s picture

Status: Needs review » Fixed

Thanks all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.