Frequently Asked Questions

This is just placeholder text. Don’t be alarmed, this is just here to fill up space since your finalized copy isn’t ready yet. Once we have your content finalized, we’ll replace this placeholder text with your real content.

You can insert a blueprint from your BricksProps Structure context menu. Don’t forget to adjust the aria-controls attribute of the button to match the id of the answer div. You can also insert the element from the BricksProps Elements tab.
The semantic structure of the FAQ is conveyed with native dl, dt and dd elements. To ensure the list structure is communicated to assistive technologies, instead of applying a button role to the dt element, a button element is contained within the dt element. Similarly, each div element containing answer content that can be shown or hidden by the button is a child of a dd element. Since all the dd elements are present in the DOM even if some answers are hidden, the dl structure is always complete.
To help people with visual impairments identify the disclosure as interactive and make it easier to perceive that clicking either the disclosure button or its label changes the expanded state, when a pointer hovers over the button or its label, the background color changes, a border appears, and the cursor changes to a pointer.
Because transparent borders are visible on some systems with operating system high contrast settings enabled, transparency cannot be used to create a visual difference between the element that is focused an other elements. Instead of using transparency, the focused element has a thicker border and less padding. When an element receives focus, its border changes from 0 to --o-border-size-2 and padding is reduced by --o-border-size-2. When an element loses focus, its border changes from --o-border-size-2 to 0 and padding is increased by --o-border-size-2.
To ensure the arrow graphics (achieved using a pseudo element) in the CSS have sufficient contrast with the background when high contrast settings invert colors, the color of the arrows are synchronized with the color of the text content. For example, the color of the arrow is set to match the foreground color of high contrast mode text by specifying the CSS currentcolor value for the stroke and fill properties of the polygon elements used to draw the arrows. If specific colors were instead used to specify the color properties, those colors would remain the same in high contrast mode, which could lead to insufficient contrast between the arrows and the background or even make the arrows invisible if the color matched the high contrast mode background.
Pressing Tab moves keyboard focus to the disclosure button. Pressing Space or Enter activates the disclosure button, which toggles the visibility of the answer to the question.