From b36267373e0e349f95d2ad188af04cc185d395a2 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 15 Feb 2020 11:27:40 -0800 Subject: [PATCH] WIP Updates the root $el to be a focusable button instead of a div. Allows for separating focusing of the component from opening the dropdown --- dev/Dev.vue | 53 ++++++++++++++++++++++---- src/components/Select.vue | 51 ++++++++++++++++++++----- src/scss/modules/_dropdown-toggle.scss | 1 + tests/unit/Dropdown.spec.js | 27 ++++++++++--- 4 files changed, 110 insertions(+), 22 deletions(-) diff --git a/dev/Dev.vue b/dev/Dev.vue index 880c8c2..85ad9f9 100644 --- a/dev/Dev.vue +++ b/dev/Dev.vue @@ -1,19 +1,42 @@ @@ -36,4 +59,20 @@ export default { padding-top: 1em; width: 90%; } + + form { + width: 500px; + margin: 0 auto; + padding-top: 5rem; + } + + label { + width:100%; + display: block; + margin-top:1rem; + } + + input { + width: 100%; + } diff --git a/src/components/Select.vue b/src/components/Select.vue index ec5e5cc..c08d1b3 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -3,8 +3,7 @@