bootstrap-vue-next / bootstrap-vue-next

Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript
https://bootstrap-vue-next.github.io/bootstrap-vue-next/
MIT License
1.1k stars 110 forks source link

BFormSpinButton lacks default sizing #2156

Open dpash opened 2 weeks ago

dpash commented 2 weeks ago

Describe the bug

Test case:

https://bootstrap-vue-next.github.io/bootstrap-vue-next/docs/components/form-spinbutton.html#sizing

The default size for BFormSpinButton is smaller than sm size. There's no .form-control-md class but the standard .form-control doesn't size the spin button correctly.

I've used the following scoped css in my component to get it roughly the right size. This is mostly half way between .form-control-sm and .form-control-lg but I'm sure only some of these properties are needed.

#spinbutton {
    min-height: calc(1.5em + 0.75 + calc(var(--bs-border-width) * 2));
    padding: 0.375rem 0.75rem;
    font-size: 0.92rem;
    border-radius: var(--bs-border-radius);
}

Reproduction

https://stackblitz.com/edit/github-fnvgqz?file=src%2Fcomponents%2FComp.vue

Used Package Manager

npm

Validations

stackblitz[bot] commented 2 weeks ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.