-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ON HOLD] 555 blognews hubs multiple filters #587
base: main
Are you sure you want to change the base?
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
|
|
|
@davenichols-DHLS - I've addressed the above comments. Please have a look. Thanks. |
@@ -174,6 +236,7 @@ export default async function decorate(block) { | |||
block.append(cardList); | |||
// render cards article style | |||
} else { | |||
// block.classList.add('space-x-2'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove if this is not needed?
function toggleFilter(event) { | ||
const isOpen = event.target.parentElement.getAttribute('aria-expanded'); | ||
if (JSON.parse(isOpen)) { | ||
event.target.parentElement.parentElement.focus(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should use display none (CSS) here instead of focus / blur, which relies on JS events hence requires you to add some latency after the focus (click).
); | ||
inputEl.addEventListener('click', (e) => { | ||
window.location.href = e.target.parentElement.getAttribute('href'); | ||
}); | ||
if (toClassName(keyword).toLowerCase() === activeTag) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you're creating input[radio], this if might not be needed anymore. something like this would capture the "checked" field:
document.querySelector(`input[name=${tagName}Radio][value=${keyword}]`).setAttribute('checked', true);
Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #555
Test URLs: