Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Make label optional #2

Closed
Jomik opened this issue Sep 18, 2017 · 2 comments
Closed

Make label optional #2

Jomik opened this issue Sep 18, 2017 · 2 comments

Comments

@Jomik
Copy link

Jomik commented Sep 18, 2017

So, label is required, as I realized after messing around with this for a while. I don't want a label on my switches though, as I use them in a table layout, the "label" is given by the table head.

I did workaround it by simply adding an empty label, however I think the label should be optional, if possible.

<input type="checkbox" class="switch" :id="index+col" v-modal="list[col]">
<label :for="index+col"></label>
@Wikiki
Copy link
Owner

Wikiki commented Sep 18, 2017

Hi @Jomik,

Indeed, Label is mandatory due to the fact that is the label which is designed to display the switch using ::after and ::before.

An empty Label is the way to not have any text.

I did not find any way to not use a label without using JS.

Regards

@Wikiki Wikiki closed this as completed Sep 18, 2017
@Jomik
Copy link
Author

Jomik commented Sep 18, 2017

That is fair enough! The switch does not show up without a label, was my issue.

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

No branches or pull requests

2 participants