Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox without label #17

Closed
lazabogdan opened this issue Jan 10, 2015 · 4 comments
Closed

Checkbox without label #17

lazabogdan opened this issue Jan 10, 2015 · 4 comments

Comments

@lazabogdan
Copy link

Would be nice to support single controls without displaying the label (useful for checkboxes in tables for example).

Here's what I used:

.checkbox.checkbox-single {
    label {
        width: 0;
        height: 16px;
        visibility: hidden;
        &:before, &:after {
            visibility: visible;
        }
    }
}
@smartcorestudio
Copy link

+1 Thanks for your solution. I want it to be icluded into the core, because this usecase (checkboxes in tables) is pretty general

@piotrantosik
Copy link

👍

@micrum micrum closed this as completed in ec39d7b Mar 6, 2015
@micrum
Copy link
Contributor

micrum commented Mar 6, 2015

@lazabogdan from version 0.3.0 you can use checkbox-single class:

                <div class="checkbox checkbox-single">
                    <input type="checkbox" id="singleCheckbox1" value="option1" aria-label="Single checkbox One">
                    <label></label>
                </div>
                <div class="checkbox checkbox-primary checkbox-single">
                    <input type="checkbox" id="singleCheckbox2" value="option2" checked aria-label="Single checkbox Two">
                    <label></label>
                </div>

@okendoken
Copy link
Member

@micrum good job 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants