Skip to content

Commit

Permalink
[docs] Fix charts sizing example
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Oct 18, 2023
1 parent 28725d0 commit 41d1ebf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src-docs/src/views/elastic_charts/sizes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
EuiPageSection,
EuiFormRow,
EuiRange,
EuiPage,
EuiPanel,
EuiButton,
EuiCopy,
} from '../../../../src/components';
Expand Down Expand Up @@ -192,12 +192,13 @@ class Sizes extends Component<WithEuiThemeProps, State> {

return (
<>
<EuiPage>
<EuiPageSection
role={null}
horizontalPosition="center"
<EuiPageSection component="div" color="subdued" paddingSize="none">
<EuiPanel
color="plain"
hasShadow
style={{
width: `${width}%`,
inlineSize: `${width}%`,
marginInline: 'auto',
overflow: 'hidden',
}}
>
Expand Down Expand Up @@ -246,8 +247,8 @@ class Sizes extends Component<WithEuiThemeProps, State> {
tickFormat={(d) => Number(d).toFixed(2)}
/>
</Chart>
</EuiPageSection>
</EuiPage>
</EuiPanel>
</EuiPageSection>

<EuiSpacer />

Expand Down

0 comments on commit 41d1ebf

Please sign in to comment.