Some radio buttons as part the the repeat date API do not display in Shiny.

Offending code appears to be as below.

#foo:checked::before, input.form-checkbox, input.form-radio {
    opacity: 0;
    width: 17px;
    height: 17px;
}

Removing the opacity value or changing it from 0 to 1 fixes the problem.

Two screen shots. 1) With Shiny 2) With Seven

Comments

MrPaulDriver created an issue. See original summary.

mrpauldriver’s picture

Issue summary: View changes
chippper’s picture

I can verify this issue, as well.

It appears that the issue stems from the Date Repeat Field not using labels to correspond to their radio buttons.

The Shiny theme assumes that any radio button has a label, and inserts a fancy looking radio button with a :before pseudoelement. However, this clearly isn't the case with the Date Repeat field. Unfortunately, there is no previous sibling selector in CSS, so there are two options:

1. Get the Date Repeat Field module to change the markup to use labels
2. Make an exception in the Shiny CSS to accommodate:

/* Using "foo" to make unsupporting browsers ignore */
#foo:checked::before,
input.form-checkbox,
input.form-radio {
  opacity: 0;
  width: 17px;
  height: 17px;
}

.field-type-datetime input.form-checkbox,
.field-type-datetime input.form-radio {
  opacity: 1;
}

Obviously, option 1 is preferable, but option 2 may be quicker.

laurelstreng’s picture

Also having this issue.

Until the bug is fixed, I was able to create a custom module w/ styling to override the Shiny Admin opacity: 0;

Rajvi.addweb’s picture

Status: Active » Needs review
StatusFileSize
new934 bytes

PFA patch w.r.t comment #3

mrpauldriver’s picture

Confirm that this works in works in terms of modifying the shiny.css file.

I haven't haven't tried generated output via scss

Rajvi.addweb’s picture

It will work properly by shiny.css after applied patch files.

Steps for SCSS:

1. You need to install ruby & compass.
2. Details provided on http://sass-lang.com/install

riddhi.addweb’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new62.06 KB

Hi,

#5 patch works for me.

Thanks.

c7bamford’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new2.23 KB

This issue affects every checkbox that is not preceeded by a label, not just those that the date module is producing. This patch changes the checkbox from using a different dom element to using visibility to hide the browser's default checkbox and show the new one as an after element.