Skip to content

Commit

Permalink
Fix: Narrative item header level calculation (adaptlearning#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Apr 6, 2023
1 parent bc32cb6 commit c5abd1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/narrative.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { templates, compile, classes } from 'core/js/reactHelpers';
export default function Narrative(props) {

const {
_id,
_items,
_translateXOffset,
_hasNavigationInTextArea,
Expand Down Expand Up @@ -90,7 +91,7 @@ export default function Narrative(props) {
<div
className="narrative__content-title-inner"
role="heading"
aria-level={a11y.ariaLevel({ level: 'componentItem', override: (_ariaLevel || null) })}
aria-level={a11y.ariaLevel({ id: _id, level: 'componentItem', override: (_ariaLevel || null) })}
dangerouslySetInnerHTML={{ __html: compile(title, props) }} />
</div>
}
Expand Down

0 comments on commit c5abd1b

Please sign in to comment.