diff --git a/src/rsg-components/TableOfContents/TableOfContentsRenderer.js b/src/rsg-components/TableOfContents/TableOfContentsRenderer.js index c327f0f44..3badf9106 100644 --- a/src/rsg-components/TableOfContents/TableOfContentsRenderer.js +++ b/src/rsg-components/TableOfContents/TableOfContentsRenderer.js @@ -43,10 +43,11 @@ export function TableOfContentsRenderer({ classes, children, searchTerm, onSearc value={searchTerm} className={classes.input} placeholder="Filter by name" + aria-label="Filter by name" onChange={event => onSearchTermChange(event.target.value)} /> - {children} + ); diff --git a/src/rsg-components/TableOfContents/__snapshots__/TableOfContents.spec.js.snap b/src/rsg-components/TableOfContents/__snapshots__/TableOfContents.spec.js.snap index 027fda5da..f31b586ef 100644 --- a/src/rsg-components/TableOfContents/__snapshots__/TableOfContents.spec.js.snap +++ b/src/rsg-components/TableOfContents/__snapshots__/TableOfContents.spec.js.snap @@ -5,11 +5,13 @@ exports[`renderer should render table of contents 1`] = `
+
`; diff --git a/src/rsg-components/ToolbarButton/ToolbarButtonRenderer.js b/src/rsg-components/ToolbarButton/ToolbarButtonRenderer.js index a2fda2112..34e94618d 100644 --- a/src/rsg-components/ToolbarButton/ToolbarButtonRenderer.js +++ b/src/rsg-components/ToolbarButton/ToolbarButtonRenderer.js @@ -54,14 +54,14 @@ export function ToolbarButtonRenderer({ if (href !== undefined) { return ( - + {children} ); } return ( - ); diff --git a/src/rsg-components/ToolbarButton/__snapshots__/ToolbarButton.spec.js.snap b/src/rsg-components/ToolbarButton/__snapshots__/ToolbarButton.spec.js.snap index 153e8201e..9474b36dd 100644 --- a/src/rsg-components/ToolbarButton/__snapshots__/ToolbarButton.spec.js.snap +++ b/src/rsg-components/ToolbarButton/__snapshots__/ToolbarButton.spec.js.snap @@ -2,6 +2,7 @@ exports[`should render a button 1`] = `