Questions tagged [accordion]
An accordion is a type of menu that allows for additional content to be shown below the heading upon mouse action. Only one heading's content can be open at a time. When the next heading is selected, the previous heading's content will close.
accordion
4,168
questions
1
vote
1
answer
22
views
Component init inside ng bootstrap accordion even if closed
I'm facing an issue using ng bootstrap's accordion with components inside them.
I have an *ngFor and for each index array there is an accordion that contains a component.
The problem is, even ...
1
vote
1
answer
40
views
Multiple accordions working independently where the first of every accordion is open [duplicate]
I'm using this accordion module from W3Schools: https://codepen.io/SupposedlySam/details/oWWgqZ
It's working well, only a problem occurs when i use two of them on the page. They still work. Only they ...
1
vote
1
answer
19
views
How to control opening primeng accordion content by a button placed on the accordion
I want to open the primeng accordion using a button that is placed in its custom header and i dont want the accordion to open if i click anywhere else. i am using primeng 11-lts version and this is my ...
1
vote
1
answer
24
views
bootstrap react Accordion - collapse / expand via useState
I've a react-accordion component with multiple 'cards'.
Initially the first is expanded and the rest is collapsed.
I would like to control the state (collapsed/expanded) via a react state (useState).
...
-1
votes
0
answers
28
views
SwiftUI: How to check if part of a view is out of screen? [closed]
I have an accordion in a ScrollView. When an item of the accordion is expanded, its content may be out of the screen. How can I check if the content is out of the screen and scroll up to show it?
...
0
votes
1
answer
31
views
How to animate or anchor bootstrap 4 accordion to its respective title when clicking its button?
Right now I have multiple script id's of #collapseTab2-1, #collapseTab2-2, #collapseTab2-3 etc.. to implement animate/anchor to its accordion title respectively when clicking its respective button ...
0
votes
0
answers
36
views
Bootstrap 4: Opening Bootstrap 4 navtabs with accordions using URL when clicking the button [duplicate]
I'm trying to make a button link that will go to another page containing its respective accordion, and then activate the appropriate accordion section.
I have this working code below that the button ...
2
votes
1
answer
20
views
PrimeReact AccordionTab Not Rendering When Wrapped in Custom Component
I'm facing an issue where my custom FilterAccordionTab component, which extends PrimeReact's (V8) AccordionTab, is not rendering its content. However, when I directly use PrimeReact's AccordionTab ...
0
votes
1
answer
19
views
Align title to the left in an AccordionItem
I am using an Accordion widget within my sample app (used for learning Kivy). In my KV code, I have:
Accordion:
orientation: 'vertical'
AccordionItem:
title: '2024/12/...
0
votes
1
answer
47
views
How to use Bootstrap 4 navtabs with accordions show.bs and hide.bs functionalities?
Is there a way that if I click the Button for Maintab 2 will activate the Maintab 2 Content and will show the accordion content for Collapsible Group Item #2. I'm going to implement it also on the ...
0
votes
0
answers
22
views
Issue with Bootstrap 4 collapses in pills tabs using Rails 6 and Haml
Context
I'm working on a Rails application using Bootstrap for the UI. I want to integrate a set of pills, each containing an accordion that displays a list of subcategories. When a subcategory is ...
0
votes
1
answer
74
views
CSS for bootstrap accordion
So I'm pretty new to css and bootstrap, and have added an accordian into my view page. I have tried to alter the original css but with no luck!
<div class="accordion accordian-flush" id=&...
1
vote
0
answers
23
views
Trying to implement Accordion in React so that multiple accordions can be open at a time
I am sending data as an array of object from main component file to Accordion component -
return <Accordion items={items} />;
items consist of 3 properties - Id, title and data.
Accordion ...
0
votes
0
answers
24
views
Collapse accordion on page load
Is there a way to make accordion collapse on page load?
Currently t-store__tabs__item_active loads first.
Using a website builder with no capability of editing html, but can use css, js or jquery.
...
0
votes
1
answer
42
views
What is giving me a blank page on a React app on LocalHost?
I created a react page (localhost) to follow along with a tutorial, but my webpage is completely blank. The console shows the attached error messageenter image description here
I added
“permissions”: [...
0
votes
0
answers
13
views
JS Accordion : jump to title when open
I have a FAQ section with accordion for each questions.
When I open an question, I would like the window to scroll to the top of the title of the current opened accordion (instead of staying in the ...
1
vote
1
answer
65
views
Transitioning an accordion content with "allow-discrete" value for "display" property
I have an accordion in which content is visually hidden and shown using transitions on grid-template-rows from 0fr to 1fr values.
It's inspired by a solution made by Kevin Powell on its youtube ...
0
votes
0
answers
30
views
NVDA overrides eventListeners on arrow keys 38 and 40 with its own behavior for that
The "handleAccordionKeyDown" function enables arrow key navigation in an accordion.
If the first accordion element, a link, is focused with the tab key, arrow key navigation is activated.
...
0
votes
1
answer
36
views
Background Color for Accordion Collapse won't reset back to default
I'm totally scratching my head on this one so I apologize if it's a simple fix.
I'm using Accordion categories to expand and collapse sections by either clicking the same section again to collapse it ...
0
votes
0
answers
26
views
Bootstrap5 accordion is not woking in iOS devices
<div className={'accordion'} id={'accordionNav'}>
<div className={'accordion-item'}>
<div className={'accordion-header'} id="headingOne">
...
0
votes
2
answers
91
views
how to close the previous accordions when scrolling the page and reach to new accordion?
I am using accordion material-mui. at first all of accordions are opened. when I scroll the page and I reach to the second accordion, I want to close the first accordion and when I reach to the third ...
0
votes
0
answers
23
views
No named parameter with the name 'flipRightIconIfOpen'. flipRightIconIfOpen: true,
This is how I called the flipRightIconOpen;
headerPadding: const EdgeInsets.all(15),
flipRightIconIfOpen: true,
headerBackgroundColor: Colors.grey.shade100,
contentBackgroundColor: Colors.grey....
-1
votes
2
answers
48
views
Warning: validateDOMNesting(...): <div> cannot appear as a child of <tr>warning while using Accordion inside tbody
I am using Accordian from react-bootstrap, I want that the table row can be expanded to view another table, it is working fine but giving me warnings on browser console.
<div className="row me-...
1
vote
0
answers
25
views
Change div to offcanvas on breakpoint
I want to change the accordion div below to an offcanvas when the large screen breakpoint is triggered in the HTML below.The only way I can think is to replicate the accordion HTML in the offcanvas ...
0
votes
1
answer
18
views
Javascript Accordion assign classes click event
Currently the class "open" is assigned to the "accordion_container" when it is clicked. So far everything is good. What I want to change is just that this happens when clicking on ...
0
votes
0
answers
107
views
NextUI dom nested button warning with <Accordion />
I'm trying to add a button as the startContent property inside an AccordionItem in in NextUI. The problem is that the AccordionItem uses as an implementation but I really have to add a button ...
1
vote
1
answer
62
views
Vertical scroll bar in react-bootstrap Accordion Body is not clickable
I am using the react-bootstrap accordion. One of my items contains a list that's sometimes rather long. I added overflowY: auto to the style in order to add a scroll bar in these cases. The scroll bar ...
0
votes
1
answer
334
views
NextUI Accordion Background Color
I am working in NextUI V2.2.10 with Tailwind CSS. I have an accordion item that I want to custom style outside of the theme (I actually just want to flip the background color and text color on the ...
0
votes
0
answers
54
views
How to solve Wordpress accordion problem on Iphone?
I have built an accordion FAQ on my WordPress website. It works fine on Desktop, Tablet and Android but on iPhones It does not work properly. To make accordions open and close, weirdly I have to use ...
0
votes
2
answers
60
views
How to open specific Accordion item in Django using Bootstrap?
I have a Django app with a page that contains a Bootstrap Accordion.
I have a form in the third accordion item. On submit within that form I want the page to refresh to the same accordion item - I ...