rename pesudo element in code gutter

This commit is contained in:
August Skare 2018-10-30 09:07:25 +01:00
parent 6b11ca6c1d
commit eb9d802146
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ const StyledCodeDiff = styled(({ gutterLength, children, ...props }: any) => <co
padding-left: calc(2.25rem + ${props => props.gutterLength}ch);
::before {
content: attr(data-test);
content: attr(data-gutter);
width: ${props => props.gutterLength};
padding-left: 0.375rem;

View File

@ -31,7 +31,7 @@ function diffHighlight(language: string, code: any, gutter: any) {
const g = gutter[index];
return `<span data-test="${g !== undefined ? g + 'x' : ''}" class="line-${type}">${
return `<span data-gutter="${g !== undefined ? g + 'x' : ''}" class="line-${type}">${
hljs.highlight(language, line).value
}</span>`;
})