';
- if (!empty($element['#description'])) {
- $output .= '
' . $element['#description'] . '
';
+ $variables['summary_attributes']['aria-expanded'] = empty($element['#attributes']['open']) ? FALSE : TRUE;
+ $variables['summary_attributes']['aria-pressed'] = $variables['summary_attributes']['aria-expanded'];
}
- $output .= $element['#children'];
- if (isset($element['#value'])) {
- $output .= $element['#value'];
- }
- $output .= '
';
- $output .= "