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

Add color modifier for the unchecked state #5

Merged
merged 1 commit into from
Oct 9, 2017
Merged

Add color modifier for the unchecked state #5

merged 1 commit into from
Oct 9, 2017

Conversation

madmatah
Copy link
Contributor

@madmatah madmatah commented Oct 8, 2017

Hi,

Thanks for your bulma-extensions !

I added more color modifiers to the switch, to be able to define the color when the checkbox is unchecked.

  • is-unchecked-info
  • is-unchecked-warning
  • is-unchecked-danger
  • ...etc

Example :

<div class="field">
  <input id="switchColorSuccess" type="checkbox" name="switchColorSuccess" class="switch is-success is-unchecked-danger" checked="checked">
  <label for="switchColorSuccess">Switch success</label>
</div>

It was useful for me in a project because i had a lot of use cases and the $switch-background variable was not enough for my needs.
I open a pull request because it may help other people :-)

Copy link
Owner

@Wikiki Wikiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot 😉

@Wikiki Wikiki merged commit 6efd4df into Wikiki:master Oct 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants