Skip to content
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

fix/feat: Keep AccordionItem content hidden in DOM even when closed #917

Merged

Conversation

Not-Jayden
Copy link
Contributor

@Not-Jayden Not-Jayden commented Jul 11, 2023

πŸ“‘ Description

This change involves duplicating conditionally shown content shown inside the {#if open} block to still render in the DOM but hidden with CSS. This closer aligns to the implementations of the components for the core Flowbite library and the Flowbite React library, and has an added benefit of allowing the relevant content inside an accordion to be crawled by search engines.

Status

  • [] Not Completed
  • Completed

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • I have checked the page with https://validator.unl.edu/
  • All the tests have passed
  • My pull request is based on the latest commit (not the npm version).

@stackblitz
Copy link

stackblitz bot commented Jul 11, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link

vercel bot commented Jul 11, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
flowbite-svelte βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jul 11, 2023 1:15pm
flowbite-svelte-update βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jul 11, 2023 1:15pm

@Not-Jayden Not-Jayden changed the title fix: keep AccordionItem content present when closed in duplicated els… fix/feat: Keep AccordionItem content hidden in DOM even when closed Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants