Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Fix grouped/addons size with inside labels (buefy#1761)
Browse files Browse the repository at this point in the history
* Fix grouped/addons size with inside labels

* Use b-button instead of button
  • Loading branch information
service-paradis authored and LeoMouyna committed Jan 6, 2020
1 parent 32b8619 commit 927d1c6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/pages/components/field/examples/ExLabelPosition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,23 @@
:label-position="labelPosition">
<b-input maxlength="200" type="textarea"></b-input>
</b-field>

<hr>
<p class="title is-6">Also works for grouped field and with addons.</p>

<b-field label="Search..." :label-position="labelPosition" grouped>
<b-input placeholder="Search..." type="search"></b-input>
<p class="control">
<b-button class="button is-primary">Search</b-button>
</p>
</b-field>

<b-field label="Search..." :label-position="labelPosition">
<b-input placeholder="Search..." type="search"></b-input>
<p class="control">
<b-button class="button is-primary">Search</b-button>
</p>
</b-field>
</section>
</template>

Expand Down
10 changes: 10 additions & 0 deletions src/scss/components/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ $floating-in-height: 3.25em;
}
}
}

&.has-addons, &.is-grouped {
.control {
.button,
.input,
.select select {
height: $floating-in-height
}
}
}
}
&.is-floating-label, &.is-floating-in-label {
&.has-numberinput {
Expand Down

0 comments on commit 927d1c6

Please sign in to comment.