Skip to content

Commit b5efa4d

Browse files
committed
fix: escape pageInnerId in case it contains colons
1 parent 7c76542 commit b5efa4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/page_template/page_template.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ export const _EuiPageTemplate: FunctionComponent<EuiPageTemplateProps> = ({
160160
const getBottomBarProps = () => ({
161161
restrictWidth,
162162
paddingSize,
163-
parent: `#${pageInnerId}`,
163+
// pageInnerId may contain colons that are parsed as pseudo-elements if not escaped
164+
parent: `#${CSS.escape(pageInnerId)}`,
164165
});
165166

166167
const innerPanelled = () => panelled ?? Boolean(sidebar.length > 0);

0 commit comments

Comments
 (0)