Skip to content

Impossible to display the toggle input as a checkbox. #409

@irodionzaytsev

Description

@irodionzaytsev

Please fill out these Check-boxes

  • I checked for existing similar issues
  • I checked that the plugin is up to date
  • The issue persist with all other plugins and themes disabled

Plugin Version

Latest

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

output

Describe the Issue

So I want to apply some styling to the toggle input, so that it looks like a checkbox.
As I understand, I have to apply it to a class something like this:
.mb-input-type-toggle.toggle-as-checkbox .checkbox-container
and then inside obsidian
INPUT[toggle(class(toggle-as-checkbox))]
The problem is, no matter what I put inside my css snippet, I don't think it's possible to make the toggle switch disappear and make it look like a checkbox. I try to take code from here, and change accordingly, but I get rubbish. The problem is, I can't make the toggle sit inside the span of my own class.
Could you either add a separate checkbox input that can be used inline, or make the styling more accessible (like maybe add this usecase into documentation)?
I try to achieve this with chatGPT, but it doesn't work.

Steps to Reproduce

Described above

Expected Behavior

i expect to be able to have a checkbox input instead of a toggle. Right now the only way is to install the ITS theme where all toggles are replaced by checkboxes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behavior caused by this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions