I would like to style faq questions that have been ‘expanded’ differently than those that are ‘collapsed.’ Currently you are changing display to “block” upon expansion. It would also be helpful to add a class value at the level of the single_faq to indicate that it is currently open. That will allow me, for instance, to use “open” and “collapsed” icons at the start of the questions.
Thus: <div class=”single_faq open”> or something similar when in the expanded state. Thanks!
Another note: to make the FAQ questions keyboard navigable, I am doing this in the code of faq-manager (1.11) on line 78:
$displayfaq .= ‘<‘.$faq_htype.’ id=”‘.$faq_slug.'” c\
That may not be the best way to make the code keyboard navigable in HTML5, but I’ve not had time to research a better way.
- The topic ‘Add class to indicate "expanded" on faq question’ is closed to new replies.