Checkbox CSS (not list)

I am wondering does anyone know how to style a checkbox, not in a list format.

So when checked, either the text colour changes or highlights it.

Screenshot 2024-04-01 at 19-26-37 PSYCH ME · Glide

This was achieved by this CSS code:

<pre><span><style>

[id*='screenScrollView'] >div >div .current {
color: white !important;
background-color: #f7b85c;
}

This is the checkbox in use but again it is not a list, its just a standalone single checkbox

Screenshot 2024-04-01 at 19-27-02 PSYCH ME · Glide

TQ.

div[class*="wire-container___StyledDiv2"] :has(div[kind="stroke"]) div[class*="wire-switch"] {
background-color: #f7b85c;
font-weight: 600;
}

image

Here are 2 checkboxes pointing to different columns.

If you want to highlight the checkbox as well:

div[class*="wire-container___StyledDiv2"]:has(div[kind="stroke"]) label[class*="wire-switch"] {
background-color: #f7b85c;
font-weight: 600;
}

Is this in Glide Pages? I was looking for something for Glide Classic Apps.

Ah yes, this is for the new version.

For Classic:

<pre><span><style>

[data-test="app-checkbox-list-item"]:has(rect[fill="currentColor"]) {
background-color: #f7b85c;
font-weight: 600;
}

</style></span></pre>
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.