Skip to content

Commit

Permalink
EXUI-1688: Accessibility with details/summary element (#3714)
Browse files Browse the repository at this point in the history
* Resolve accessibility issue with detail/summary component

* resolve broken test

* yarn audit

* Yarn audit

---------

Co-authored-by: OgunyemiO <[email protected]>
Co-authored-by: RiteshHMCTS <[email protected]>
  • Loading branch information
3 people authored Jul 18, 2024
1 parent b675c99 commit f8a56b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cases/containers/case-list/case-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
>
</ccd-search-result>
<div id="info-msg-unselected-case" *ngIf="hasResults() && (isCaseShareVisible$ | async)" class="form-group">
<details class="govuk-details" data-module="govuk-details">
<summary class="govuk-details__summary">
<details #detailsElement class="govuk-details" data-module="govuk-details">
<summary class="govuk-details__summary" role="button" [attr.aria-expanded]="detailsElement.open">
<span id="sp-msg-unselected-case-header" class="govuk-details__summary-text">
{{'Why are some cases unselectable?' | rpxTranslate}}
</span>
Expand Down
2 changes: 1 addition & 1 deletion test_codecept/e2e/features/pageObjects/caseFileViewPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CaseFileViewPage{
async getFileDisplayedInMediaViewer(){
const ele = element(by.xpath(`//title`));
return await ele.getText()
}
}

}

Expand Down

0 comments on commit f8a56b3

Please sign in to comment.