Skip to content

Commit

Permalink
undoes String cast per review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Feb 7, 2020
1 parent 2310a4f commit 04fceba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/code/__snapshots__/code_block.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ console.log(some);
exports[`EuiCodeBlock props overflowHeight is rendered 1`] = `
<div
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--hasControls"
style="max-height: 200;"
style="max-height: 200px;"
>
<pre
class="euiCodeBlock__pre"
style="max-height: 200;"
style="max-height: 200px;"
>
<code
class="euiCodeBlock__code"
Expand Down
2 changes: 1 addition & 1 deletion src/components/code/_code_block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class EuiCodeBlockImpl extends Component<Props, State> {
const optionalStyles: CSSProperties = {};

if (overflowHeight) {
optionalStyles.maxHeight = String(overflowHeight);
optionalStyles.maxHeight = overflowHeight;
}

const codeSnippet = (
Expand Down

0 comments on commit 04fceba

Please sign in to comment.