diff options
author | Emily McMinn <emily@mcminn.ca> | 2019-05-24 10:40:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-24 10:40:54 -0400 |
commit | 90304c611062308434d3061c89427a2aefb94ea4 (patch) | |
tree | 2b1c02a3feeaa616d5c13594516cb04d2c9ac14f | |
parent | 3ef622799ccbb0e01c9cbbf3a0d05f1f4b37994b (diff) |
set the aria-expanded attribute of collapsible sections to mirror the collapsed prop. (#5063)
-rw-r--r-- | content-src/components/CollapsibleSection/CollapsibleSection.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content-src/components/CollapsibleSection/CollapsibleSection.jsx b/content-src/components/CollapsibleSection/CollapsibleSection.jsx index e767cb4e..6163cdd7 100644 --- a/content-src/components/CollapsibleSection/CollapsibleSection.jsx +++ b/content-src/components/CollapsibleSection/CollapsibleSection.jsx @@ -155,6 +155,7 @@ export class _CollapsibleSection extends React.PureComponent { return ( <section className={`collapsible-section ${this.props.className}${enableAnimation ? " animation-enabled" : ""}${collapsed ? " collapsed" : ""}${active ? " active" : ""}`} + aria-expanded={!collapsed} // Note: data-section-id is used for web extension api tests in mozilla central data-section-id={id}> <div className="section-top-bar"> |