Closed irodionzaytsev closed 2 months ago
Actually someone already ask this as feature request here, but I don't think this is a feature request, because technically it should be possible to achieve this by CSS styling. If you prefer to add another field, namely checkbox, that of course solves this styling bug because then toggle is just a toggle.
The toggle styling comes from Obsidian and not this plugin. I do want to implement separate checkboxes at some point when I find the time and motivation.
Please fill out these Check-boxes
Plugin Version
Latest
This Issue Occurs on
Debug Info
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 obsidianINPUT[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.