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

Support for text on both sides. #38

Open
michael-andreuzza opened this issue Jul 16, 2019 · 1 comment
Open

Support for text on both sides. #38

michael-andreuzza opened this issue Jul 16, 2019 · 1 comment

Comments

@michael-andreuzza
Copy link

michael-andreuzza commented Jul 16, 2019

Hey !.

I can't seem to achieve to have text on both sides.
I am using the switch on colorsandfonts.com and I would like to display this:
" Light ( switch ) Dark "

This is my code by now:

                                <label for="switchRoundedInfo">
                                    <ion-icon name="sunny"></ion-icon>
                                </label> 

The only problem is that it gets messy if I try it.

Thank you very much and have a good day !

@jcraigk
Copy link

jcraigk commented Jan 7, 2020

It would be great if we could put the label anywhere, for example, using Bulma's suggested horizontal form layout:

<div class="field is-horizontal">
  <div class="field-label">
    <label class="label" for="my-switch-control">Already a member?</label>
  </div>
  <div class="field-body">
    <div class="field is-narrow">
      <div class="control">
        <input id="my-switch" type="checkbox" class="is-switch">
      </div>
    </div>
  </div>
</div>

Currently without the label being a direct following sibling of the checkbox, the control does not display.

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