-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMS-484: Accessibility updates (#1554)
* CMS-484: Contain an element with role=menuitem in an element with role=menu * CMS-484: Change an element with role=menu * CMS-484: Small fix * CMS-488: Remove role=button from park photo gallery * CMS-489: Add aria-controls to input * CMS-490: Add for to advisories search filter label * CMS-496: Add title to iframe * NOBUG: Organize component files * CMS-492: Add underline to links under the more ways to find a park * CMS-498: Apply aria-label to see all link on find a park page * CMS-500: Add lang attribute to htmlContent * CMS-570: Change aria label on go back to the full list button * NOBUG: Small fix * CMS-542: Add urgency level name to advisory icon * CMS-550: Change heading on find a park page * CMS-553: Add aria label to show all links * CMS-536: Add unique id to popular filters on find a park page * CMS-551: Remove alt from fontawesome icon * CMS-540: Move focus when the scroll button is clicked by keyboard * CMS-554: Add aria live to no match message in typeahead fields * CMS-553: Update aria label grammar show less to show fewer * CMS-552: Redirect to the park page if there is one result that exactly matches input text
- Loading branch information
Showing
51 changed files
with
267 additions
and
366 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from "react" | ||
import { usePreRenderVideo } from "../utils/usePreRenderVideo" | ||
|
||
export default function HtmlContent(props) { | ||
const { htmlContent } = usePreRenderVideo(props.children) | ||
if (!props) return null | ||
return ( | ||
<div | ||
lang="en" | ||
className={`raw-html-content ${props.className ? props.className : ""}`} | ||
dangerouslySetInnerHTML={{ __html: htmlContent || props.children }} | ||
/> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.