Skip to content

Commit

Permalink
Merge pull request #5304 from primefaces/Fix-#5303-code-display-spacing
Browse files Browse the repository at this point in the history
Fix 5303 Spacing inconsistency in code displays
  • Loading branch information
gucal authored Nov 13, 2023
2 parents 66fce5a + e1b83b9 commit 1b3e1f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/doc/common/codehighlight.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useEffect, useRef } from 'react';
import { classNames } from '../../lib/utils/Utils';

export function CodeHighlight(props) {
const codeElement = useRef();
Expand All @@ -11,7 +10,7 @@ export function CodeHighlight(props) {

return (
<pre style={props.style} tabIndex="-1">
<code ref={codeElement} className={classNames(languageClassName, { 'pt-5': props.code && !props.import })}>
<code ref={codeElement} className={languageClassName}>
{props.children}&nbsp;
</code>
</pre>
Expand Down

0 comments on commit 1b3e1f9

Please sign in to comment.