baianat / verte

🎨 A Color picker component. Built from the bottom to work with Vue.js.
https://baianat.github.io/verte/
MIT License
181 stars 42 forks source link

Color Picker not rendering correctly #10

Closed janikga closed 6 years ago

janikga commented 6 years ago

Describe the bug

Hey guys, I'm having problems with integrating verte into my application. First of all, let me say that it looks like a really lean lib that matches my needs exactly, so good job with that!

Here you see a screenshot of how the color picker currently looks like. Obviously, it doesn't render correctly (missing css?):

screen shot 2018-09-28 at 09 45 27

To Reproduce/ how my code looks like

my .vue file:

<template>
 <section>
... some other components
    <verte
        :picker="'wheel'"
        :model="'hex'"
        :value="colors">
    </verte>
 </section>
</template>

and

<script lang="ts">
...
import verte from 'verte'
...
export default {
  components: {
     someOtherComponents,
     verte
  }
}

Any suggestions on what I'm doing wrong? Is a css importing missing in the docu maybe?

Desktop (please complete the following information):

janikga commented 6 years ago

fixed it by adding import '../node_modules/verte/dist/verte.css' to my app.ts(where i create and mount the app). Makes probably sense to add a hint to the docs about importing the css?

ismail9k commented 6 years ago

Sure, we will add this to docs, thank you for help.