From 5e56297ac5590baa21756934f26da8d4aa4c4465 Mon Sep 17 00:00:00 2001 From: Michael Bishop Date: Fri, 12 Jul 2024 17:48:18 -0400 Subject: [PATCH] fix: no hiding the hidden attribute is for accessiblity and machines. No need to remove --- pull-quote.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pull-quote.js b/pull-quote.js index 6e54905..582dd4f 100644 --- a/pull-quote.js +++ b/pull-quote.js @@ -23,13 +23,11 @@ class PullQuote extends HTMLElement { } connectedCallback() { - // Show the pullquote - this.root.querySelector('.pullquote').removeAttribute('hidden'); + } disconnectedCallback() { - // Hide the pullquote - this.root.querySelector('.pullquote').setAttribute('hidden', 'true'); + } /**