Skip to content

Commit

Permalink
feat(slider): Light variation (#818)
Browse files Browse the repository at this point in the history
* feat(slider): Add light variation

* fix: Fix spelling error in all config files
  • Loading branch information
alisonjoseph committed May 30, 2018
1 parent 3c3e122 commit 4342272
Show file tree
Hide file tree
Showing 23 changed files with 43 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/components/button/button.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
default: 'primary',
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/card.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/code-snippet/code-snippet.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/combo-box/combo-box.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/content-switcher/content-switcher.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/dropdown/dropdown.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/form.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/list-box/list-box.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/list/list.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/loading/loading.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/modal/modal.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/multi-select/multi-select.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/number-input/number-input.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/order-summary/order-summary.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/pagination/pagination.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/search.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
default: 'large',
Expand Down
2 changes: 1 addition & 1 deletion src/components/select/select.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
21 changes: 21 additions & 0 deletions src/components/slider/slider.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use strict';

module.exports = {
variants: [
{
name: 'default',
label: 'Slider',
notes: `
A slider enables the user to specify a numeric value which must be no less than a given value,
and no more than another given value.
`,
},
{
name: 'light',
label: 'Light',
context: {
light: true,
},
},
],
};
2 changes: 1 addition & 1 deletion src/components/slider/slider.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<input id="slider" class="bx--slider__input" type="range" step="1" min="0" max="100" value="50">
</div>
<span class="bx--slider__range-label">100</span>
<input id="slider-input-box" type="number" class="bx--text-input bx--slider-text-input" placeholder="0">
<input id="slider-input-box" type="number" class="bx--text-input bx--slider-text-input{{#if light}} bx--text-input--light{{/if}}" placeholder="0">
</div>
</div>
2 changes: 1 addition & 1 deletion src/components/text-area/text-area.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/text-input/text-input.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use stirct';
'use strict';

module.exports = {
variants: [
Expand Down

0 comments on commit 4342272

Please sign in to comment.