-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename the .dropdown
class to be more specific to this component?
#574
Comments
Yeah, this one's gotta get done for sure. I like the idea of prefixing all internal classes with I'd also like to get the CSS selectors to use the least amount of specificity as possible so it's dead simple to override them. I'd love to be able to leverage scoped styles, while keeping it simple to override - but I'm not sure that's really possible. |
FWIW, I used the double-underscore as part of the flexbox layout change because I tend to follow the BEM CSS guidelines. I'm not opposed to adopting a different style, so long we we use something consistent throughout the component. |
Agreed - I liked that it conformed to the BEM standard as well. It'd be interesting to do it all with the double |
Hi, i have a similar problem. I think the best solution is to set the style tag as 'scoped' in Select.vue file |
@SamueleCaprioli97 If I'm not mistaken, scoping the component CSS would make it near impossible to override. Something like a consistent prefix, such as @sagalbot has already started to implement would keep the override/customization door open. |
I'm currently running into an issue with this because of Bulma's dropdown class, it should definitely be named It'd maybe also be nice to be able to customize the class name? |
Yes, I've had to add .dropdown.v-select {
display: block;
} to my main CSS file in order to work around the Bulma issue. It would be nice not to have to do this (or at least for the documentation to mention the need for this workaround until then 😁 ) |
The |
This component uses the
.dropdown
class name for the element used to contain the dropdown options. That can be problematic as a.dropdown
component is pretty generic, and in fact implemented in a lot of UI toolkits. In those cases, the dropdown element generated by this component often inherit (at least some of) the styling rules of those toolkits. And with unexpected/awkward/broken results. Perhaps we could rename this component's.dropdown
to be something more specific -v-select-dropdown
, perhaps? Or just kill the entire.dropdown
class and rename the related classes since we already have thev-select
class.I can work up a PR if we can get some guidance on an approach from @sagalbot. Thanks! 👏
The text was updated successfully, but these errors were encountered: