Skip to content

Commit 22449bc

Browse files
committed
Give actions full height, but center them visually
Meaning the are larger click targets, but still centered in the box.
1 parent 746ea25 commit 22449bc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/components/Select.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
3131
/* Open Indicator */
3232
.v-select .open-indicator {
33-
display: inline-block;
33+
display: flex;
34+
align-items: center;
3435
cursor: pointer;
3536
pointer-events: all;
3637
transition: all 150ms cubic-bezier(1.000, -0.115, 0.975, 0.855);
3738
transition-timing-function: cubic-bezier(1.000, -0.115, 0.975, 0.855);
3839
opacity: 1;
39-
height: 16px;
4040
width: 12px; /* To account for extra width from rotating. */
4141
}
4242
.v-select .open-indicator:before {
@@ -60,9 +60,6 @@
6060
.v-select.loading .open-indicator {
6161
opacity: 0;
6262
}
63-
.v-select.open .open-indicator {
64-
bottom: 1px;
65-
}
6663
6764
/* Dropdown Toggle */
6865
.v-select .dropdown-toggle {
@@ -93,7 +90,7 @@
9390
}
9491
.v-select .v-select__actions {
9592
display: flex;
96-
align-items: center;
93+
align-items: stretch;
9794
padding: 0 4px 0 3px;
9895
}
9996
@@ -268,6 +265,7 @@
268265
}
269266
/* Loading Spinner */
270267
.v-select .spinner {
268+
align-self: center;
271269
opacity: 0;
272270
font-size: 5px;
273271
text-indent: -9999em;

0 commit comments

Comments
 (0)