Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
miukimiu committed Mar 17, 2022
1 parent cd601f7 commit b72f0b1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src-docs/src/views/timeline/timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
EuiTimelineItemPanel,
} from '../../../../src/components/timeline';

const body = <EuiTimelineItemPanel paddingSize="s">Lorem</EuiTimelineItemPanel>;
const body = <EuiTimelineItemPanel>Lorem</EuiTimelineItemPanel>;

const items: EuiTimelineProps['items'] = [
{
Expand Down
3 changes: 0 additions & 3 deletions src-docs/src/views/timeline/timeline_complex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiSpacer,
EuiLink,
EuiMarkdownEditor,
EuiPanel,
EuiBadge,
EuiTitle,
Expand All @@ -22,7 +20,6 @@ export default () => {
const [checked1, setChecked1] = useState(false);
const [checked2, setChecked2] = useState(false);
const [checked3, setChecked3] = useState(false);
const toggleTextSwitchId = useGeneratedHtmlId({ prefix: 'toggleTextSwitch' });
const buttonElementAccordionId = useGeneratedHtmlId({
prefix: 'buttonElementAccordion',
});
Expand Down
22 changes: 11 additions & 11 deletions src-docs/src/views/timeline/timeline_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ export const TimelineExample = {
text: (
<div>
<p>
Use <strong>EuiTimelineItem</strong>to display timeline items. Each
EuiTimelineItem accepts two props: <EuiCode>icon</EuiCode>icon and{' '}
<EuiCode>children</EuiCode>. For the children, we recommend the
usage of a{' '}
Use <strong>EuiTimelineItem</strong> to display timeline items. Each{' '}
<strong>EuiTimelineItem</strong> accepts two props:{' '}
<EuiCode>icon</EuiCode> and <EuiCode>children</EuiCode>. For the{' '}
<EuiCode>children</EuiCode>, we recommend the usage of a{' '}
<strong>EuiTimelineItemPanel</strong> but you can use any other
component. If you use a{' '}
<Link to="/layout/panel">
<strong>EuiPanel</strong>
</Link>{' '}
with <EuiCode>hasBorder</EuiCode> set to true or with color{' '}
<EuiCode>{'"transparent"'}</EuiCode>. Try to avoid passing the color{' '}
<EuiCode>{'"plain"'}</EuiCode>. This color adds a shadow that is not
suitable for this component.
</Link>
, try to avoid passing the color <EuiCode>{'"plain"'}</EuiCode>.
This color adds a shadow that is not suitable for this component.
</p>
</div>
),
Expand All @@ -104,8 +104,8 @@ export const TimelineExample = {
<Link to="/layout/panel">
<strong>EuiPanel</strong>
</Link>{' '}
and it&apos;s the perfect building block to create any type os
timelines.
and it&apos;s the recommended component to use in{' '}
<EuiCode>EuiTimelineItem.children</EuiCode>.
</p>
</div>
),
Expand Down

0 comments on commit b72f0b1

Please sign in to comment.