From 535ee2b2a706ac282d8f9ff069b8b1c92cc63ca4 Mon Sep 17 00:00:00 2001 From: Brian Fenton Date: Thu, 12 Jul 2018 15:07:49 -0500 Subject: [PATCH] Adding hand cursor to FAQ headings, and ability to address answers via URL hash (#10260) * Turning H2s into anchors to add hand cursor and to create addressable page fragments adding ref to target individual entries adding scroll handler to make sure expanded result is in view. * combining click handler directives as per CR * changing question display to always render, then hide via CSS, vs only render when state changes. * updating pug template to include heading in each URL fragment * simplifying logic & moving to vue-bootstrap accordion since multiple open panels is not required * adding pointer cursor to FAQ headings * moving initial hash checking to data prop instead of mounted so it does not trigger oddities on on hash change (re-mount) * using new pug HTML for bootstrap collapse * removing extraneous markup * updating styling to match existing page * removing fancier than necessary markup, and attendant styles * using more standard event property --- website/client/components/static/faq.vue | 50 +++++++++++++++++------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/website/client/components/static/faq.vue b/website/client/components/static/faq.vue index a26e1260cd..e2ce08aa0c 100644 --- a/website/client/components/static/faq.vue +++ b/website/client/components/static/faq.vue @@ -1,18 +1,36 @@