From 78ac10afe08f24414b39ded1f2e2bc667c6beb90 Mon Sep 17 00:00:00 2001
From: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Date: Tue, 1 Dec 2026 10:15:00 -0500
Subject: [PATCH 1/2] docs(accordion): document headingLevel property for
accessibility
---
docs/api/accordion.mdx | 115 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 115 insertions(+)
diff --git a/docs/api/accordion.mdx b/docs/api/accordion.mdx
index 02bdc9e78db..185abaa25db 100644
--- a/docs/api/accordion.mdx
+++ b/docs/api/accordion.mdx
@@ -9,6 +9,9 @@ import Parts from '@ionic-internal/component-api/v9/accordion/parts.mdx';
import CustomProps from '@ionic-internal/component-api/v9/accordion/custom-props.mdx';
import Slots from '@ionic-internal/component-api/v9/accordion/slots.mdx';
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
ion-accordion: Accordion Components: How to Build & Examples
+### Heading Level {/* #heading-level */}
+
+:::note
+
+The `headingLevel` property is supported starting in Ionic v9.1.
+
+:::
+
+By default, accordion headers are not exposed to assistive technology as headings. Setting the `headingLevel` property on `ion-accordion-group` to a value from `1` to `6` gives each accordion header in the group a heading role with that level. The heading contains the button that expands or collapses the accordion, so screen reader users can jump between accordions using heading navigation.
+
+Choose a level that fits the heading structure of the page. For example, if the accordions are inside a section titled with an `h2`, set `headingLevel` to `3`.
+
+All accordions in a group share the same heading level. A nested accordion group does not inherit the heading level of the group it is inside of, so set `headingLevel` on the nested group as well, usually to one level deeper than the outer group.
+
+
+
+
+
+```html
+Frequently Asked Questions
+
+
+
+ First Accordion
+
+ First Content
+
+
+
+ Second Accordion
+
+ Second Content
+
+
+```
+
+
+
+
+
+```html
+Frequently Asked Questions
+
+
+
+ First Accordion
+
+ First Content
+
+
+
+ Second Accordion
+
+ Second Content
+
+
+```
+
+
+
+
+
+```tsx
+<>
+ Frequently Asked Questions
+
+
+
+ First Accordion
+
+
+ First Content
+
+
+
+
+ Second Accordion
+
+
+ Second Content
+
+
+
+>
+```
+
+
+
+
+
+```html
+Frequently Asked Questions
+
+
+
+ First Accordion
+
+ First Content
+
+
+
+ Second Accordion
+
+ Second Content
+
+
+```
+
+
+
+
+
### Keyboard Interactions {/* #keyboard-interactions */}
When used inside an `ion-accordion-group`, `ion-accordion` has full keyboard support for interacting with the component. The following table details what each key does:
From 2a1b7ab2bf0ea0d159ea2a10f70442f96cefdadf Mon Sep 17 00:00:00 2001
From: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
Date: Tue, 1 Dec 2026 13:21:03 -0500
Subject: [PATCH 2/2] docs(accordion): clarify heading level usage
---
docs/api/accordion.mdx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/api/accordion.mdx b/docs/api/accordion.mdx
index 185abaa25db..df59d44974e 100644
--- a/docs/api/accordion.mdx
+++ b/docs/api/accordion.mdx
@@ -186,11 +186,11 @@ The `headingLevel` property is supported starting in Ionic v9.1.
:::
-By default, accordion headers are not exposed to assistive technology as headings. Setting the `headingLevel` property on `ion-accordion-group` to a value from `1` to `6` gives each accordion header in the group a heading role with that level. The heading contains the button that expands or collapses the accordion, so screen reader users can jump between accordions using heading navigation.
+By default, accordion headers are not exposed to assistive technology as headings. Setting the `headingLevel` property on `ion-accordion-group` to a value from `1` to `6` gives each accordion header in the group a heading role with that level. When the header is an `ion-item`, the heading contains the button that expands or collapses the accordion, so screen reader users can jump between accordions using heading navigation. Do not place a heading element around or inside the `ion-item` in the `header` slot, as this places one heading inside another.
Choose a level that fits the heading structure of the page. For example, if the accordions are inside a section titled with an `h2`, set `headingLevel` to `3`.
-All accordions in a group share the same heading level. A nested accordion group does not inherit the heading level of the group it is inside of, so set `headingLevel` on the nested group as well, usually to one level deeper than the outer group.
+All accordions in a group share the same heading level. A nested accordion group does not inherit the heading level of the group it is inside of, so set `headingLevel` on the nested group as well, usually to one level deeper than the outer group. To expose the header of a single accordion as a heading, place it inside an `ion-accordion-group` and set `headingLevel` on the group.