Giter VIP home page Giter VIP logo

Comments (5)

cleitonsouza avatar cleitonsouza commented on August 18, 2024 3

Sorry for re opening this issue

I took a look in PR #16, but i got the following conclusion: to add my own style for this component, i need to override the current style. I'm right?

If so, then i have a suggestion: add a new prop, like theme, and define a default theme, that have the current style. This will add a classe in the root element default-theme, and the style will be writen like: .default-theme .dropdown-toggle, etc..

In this way, when we pass <v-select theme="my-own">, we can develop the style from scratch

Thanks

If you agree, i will make a PR with this :)

from vue-select.

nacr avatar nacr commented on August 18, 2024 2

ok Face Palme for me :)

tks m:8ball:

from vue-select.

sagalbot avatar sagalbot commented on August 18, 2024

There aren't any pre-made themes at the moment. We discussed it in PR #16 but decided that it was unlikely the themes we produce are going to line up with a given users design. If I was wrong about that, I'm happy to merge #16. At the moment, your best bet would be write your own styles from an external stylesheet.

What are you looking for in terms of themes?

from vue-select.

sagalbot avatar sagalbot commented on August 18, 2024

For example, on the demo site, I've just added an ID to the element and add some simple styles to change the colors a bit:

/* Cyan theme */
#v-select .selected-tag {
    color: #147688;
    background-color: #d7f3f9;
    border-color: #91ddec;
}

#v-select.dropdown.open .dropdown-toggle,
#v-select.dropdown.open .dropdown-menu {
    border-color: #4CC3D9;
}

#v-select .active a {
    background: rgba(50,50,50,.1);
    color: #333;
}

#v-select.dropdown .highlight a,
#v-select.dropdown li:hover a {
    background: #4CC3D9;
    color: #fff;
}

from vue-select.

nacr avatar nacr commented on August 18, 2024

Ok will take a look.

Some how I did not get this working yesterday.

from vue-select.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.