Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#18166 closed defect (invalid)

Invisible Checkbox

Reported by: jxfeng Owned by: jxfeng
Priority: undecided Milestone: tbd
Component: Dijit - Form Version: 1.10.0
Keywords: Cc:
Blocked By: Blocking:

Description

Checkbox is invisible when used in html file like "data-dojo-type="dijit/form/CheckBox" unless add a line of "opacity:1.0;" in .css file.

Change History (5)

comment:1 Changed 5 years ago by bill

Owner: set to jxfeng
Status: newpending

It works fine for me, see http://downloads.dojotoolkit.org/release-1.10.0/dojo-release-1.10.0/dijit/tests/form/test_CheckBox.html. If you have a test case that fails, attach it using the attach file button and give instructions on how to reproduce.

comment:2 Changed 5 years ago by jxfeng

Status: pendingnew

I guess it is just theme problem, see http://jsfiddle.net/dCA4D/6/ The checkbox is actually exited on the top left corner of result, however, it is invisible. If you change <body class="claro"> in Fiddle Options to <body class="tundra">, the checkbox will turns to be visible.

Last edited 5 years ago by jxfeng (previous) (diff)

comment:3 Changed 5 years ago by bill

Resolution: invalid
Status: newclosed

There's no issue with the themes themselves, but jsfiddle is doing something weird (and wrong).

Right click on the execute pane, and select "view frame source", I see:

<link rel="stylesheet" type="text/css" 
href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.4/dijit/themes/tundra/tundra.css">
...
<body class="claro">

Those two are inconsistent. Also, it's including an old version of tundra.css rather than the 1.10 version.

Not sure how to report a bug against jsfiddle but someone should.

Last edited 5 years ago by bill (previous) (diff)

comment:4 Changed 5 years ago by freddefisk

There is no bug in jsfiddle either. You need to manually specify the correct CSS under "External Resources" to the left.

comment:5 Changed 5 years ago by bill

I guess that depends on you definition of "correct CSS". Tundra is old, but not incorrect.

Note: See TracTickets for help on using tickets.