Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
feat(RangeInput): add className on separator
Browse files Browse the repository at this point in the history
  • Loading branch information
samouss committed Oct 22, 2017
1 parent de8702a commit d9b9b21
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/components/RangeInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
/>

<slot name="separator">
to
<span :class="bem('separator')">
to
</span>
</slot>

<input
Expand Down
28 changes: 21 additions & 7 deletions src/components/__tests__/__snapshots__/range-input.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ exports[`RangeInput render default 1`] = `
placeholder
class="ais-range-input__input ais-range-input__input--from"
>
to
<span class="ais-range-input__separator">
to
</span>
<input type="number"
min="-Infinity"
max="Infinity"
Expand All @@ -38,7 +40,9 @@ exports[`RangeInput render with footer 1`] = `
placeholder
class="ais-range-input__input ais-range-input__input--from"
>
to
<span class="ais-range-input__separator">
to
</span>
<input type="number"
min="-Infinity"
max="Infinity"
Expand Down Expand Up @@ -67,7 +71,9 @@ exports[`RangeInput render with header 1`] = `
placeholder
class="ais-range-input__input ais-range-input__input--from"
>
to
<span class="ais-range-input__separator">
to
</span>
<input type="number"
min="-Infinity"
max="Infinity"
Expand All @@ -94,7 +100,9 @@ exports[`RangeInput render with max 1`] = `
placeholder
class="ais-range-input__input ais-range-input__input--from"
>
to
<span class="ais-range-input__separator">
to
</span>
<input type="number"
min="-Infinity"
max="500"
Expand All @@ -121,7 +129,9 @@ exports[`RangeInput render with min 1`] = `
placeholder
class="ais-range-input__input ais-range-input__input--from"
>
to
<span class="ais-range-input__separator">
to
</span>
<input type="number"
min="10"
max="Infinity"
Expand All @@ -148,7 +158,9 @@ exports[`RangeInput render with precision 1`] = `
placeholder
class="ais-range-input__input ais-range-input__input--from"
>
to
<span class="ais-range-input__separator">
to
</span>
<input type="number"
min="-Infinity"
max="Infinity"
Expand Down Expand Up @@ -202,7 +214,9 @@ exports[`RangeInput render with submit 1`] = `
placeholder
class="ais-range-input__input ais-range-input__input--from"
>
to
<span class="ais-range-input__separator">
to
</span>
<input type="number"
min="-Infinity"
max="Infinity"
Expand Down

0 comments on commit d9b9b21

Please sign in to comment.