Skip to content
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

Setting the form-class on b-dropdown-form #4474



Copy link

@bbugh bbugh commented Dec 9, 2019

Is your feature request related to a problem? Please describe...

We have a b-dropdown-form that needs to be a flex-wrap: nowrap, among other settings. There is currently no way to set the class on the form of the b-form-dropdown. Using class="special-form" adds the class to the wrapper li.

Describe the solution you'd like

The common pattern in these scenarios seems to be having a new property that affects the specific component, like form-class.

Happy to PR this if it's an acceptable idea.

Describe alternatives you've considered

We could use a selector to say .special-form > form but that's getting into library implementation details.

Additional context

Copy link

@tmorehouse tmorehouse commented Dec 9, 2019

The current workaround would be a custom style that targets the form element, but with scoped styles you would need the vue-loader deep selector:

<style scoped>
  .special-form /deep/ form {
    flex-wrap: nowrap;

But a new prop form-class would allow you to place bootstrap utility classes on the form element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment