hashicorp / hashicorp/nomad

UI: Document the Toggle component in Storybook

Open
#7,100 0 comments 0 reactions 1 assignee Claimed by @CITguy View on GitHub
theme/ui type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Node drain introduced a new Toggle component that hasn't found its way into our living styleguide yet.

**Styleguide:** https://nomad-storybook.netlify.com/
**Files:**
1. [Template](https://github.com/hashicorp/nomad/blob/master/ui/app/templates/components/toggle.hbs)
2. [Logic](https://github.com/hashicorp/nomad/blob/master/ui/app/components/toggle.js)
3. [Styles](https://github.com/hashicorp/nomad/blob/master/ui/app/styles/components/toggle.scss)

**States to Capture:**
- [ ] Toggle off
- [ ] Toggle on
- [ ] Toggle disabled (off)
- [ ] Toggle disabled (on)

**Screenshots:**
![image](https://user-images.githubusercontent.com/174740/74072861-1e0c7180-49bd-11ea-8672-19cc4f8e55af.png)
![image](https://user-images.githubusercontent.com/174740/74072868-249ae900-49bd-11ea-8bf4-f516811f2a7d.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.