Re: changing how checkboxes look

19 views
Skip to first unread message

Mark Friedman

unread,
Jul 30, 2024, 5:34:28 PMJul 30
to blo...@googlegroups.com
Lars,

  There is a "blocklyCheckbox" class added to the checkbox text element in field_checkbox.ts (here).  You can also see it if you inspect (with your browser) a workspace that contains a block with a checkbox field:

    <text class="blocklyText blocklyCheckbox" x="2" y="14" style="display: block;">✓</text>

  Hope this helps.

-Mark


On Tue, Jul 30, 2024 at 10:53 AM LarsiSpasi <larsi...@gmail.com> wrote:
Hello fellow humans,
Im looking for a class or selector that exclusively affects checkboxes. I personally think they are way too tall and the height should correspond the width. I was able to do this manually in google chrome's dev tools css editor. in the following image you can see on the left the desired look and on the right the normal look. Now obviously I have the problem that i havent found any css class/selector that specifically only applies to checkboxes and not all inputs.

 Screenshot 2024-07-30 195056.png

Thanks in advance,
Lars!

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/bee95c87-1637-4470-b589-5ea9043aad9cn%40googlegroups.com.

LarsiSpasi

unread,
Jul 31, 2024, 4:52:07 AMJul 31
to Blockly
yeah i ended up figuring it out, thanks anyway
Reply all
Reply to author
Forward
0 new messages