Skip to content

Commit

Permalink
[#2190] Fix VaButtonDropdown dropdown appearance and alignment for …
Browse files Browse the repository at this point in the history
…`split` and `left-icon` (#2201)

* fix: add prevent-overflow

* fix: set vertical-align to middle
  • Loading branch information
RVitaly1978 committed Aug 4, 2022
1 parent 88ffbc3 commit 9aed667
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
Expand Up @@ -16,6 +16,7 @@
Content
</va-button-dropdown>
<va-button-dropdown
class="mr-2 mb-2"
color="#525252"
label="#525252"
split
Expand Down
Expand Up @@ -15,6 +15,7 @@
Content
</va-button-dropdown>
<va-button-dropdown
class="mr-2 mb-2"
split
disable-dropdown
label="disable-dropdown"
Expand Down
Expand Up @@ -7,6 +7,7 @@
Content
</va-button-dropdown>
<va-button-dropdown
class="mr-2 mb-2"
@main-button-click="mainButtonClick"
@click="click"
split
Expand Down
Expand Up @@ -21,6 +21,7 @@
Content
</va-button-dropdown>
<va-button-dropdown
class="mr-2 mb-2"
label="custom icon && icon-open"
icon="info"
opened-icon="check_circle"
Expand Down
Expand Up @@ -50,6 +50,8 @@
:placement="$props.placement"
:offset="$props.offset"
:stateful="$props.stateful"
:close-on-content-click="$props.closeOnContentClick"
prevent-overflow
v-model="valueComputed"
>
<template #anchor>
Expand Down Expand Up @@ -208,6 +210,7 @@ export default defineComponent({
.va-button-dropdown {
display: inline-block;
font-family: var(--va-font-family);
vertical-align: middle;
.va-button {
margin: var(--va-button-dropdown-button-margin);
Expand Down

0 comments on commit 9aed667

Please sign in to comment.