-
Notifications
You must be signed in to change notification settings - Fork 840
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added `gap` prop to `EuiTimelineItem` * Adding CL * Adding `gap` test * Adding `logicalCSS` * Moving `gap` to `EuiTimeline`. Removed `component` prop from `EuiTimelineItem` * Improving callout * Fixing typo in callout text * Vertical line only appearing when items are wrapped in `EuiTimeline` * Renaming `gap` prop to `gutterSize` * Updating CL * Moving vertical line to the icon to avoid min-width
- Loading branch information
1 parent
81ee199
commit a49464e
Showing
13 changed files
with
406 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
import React from 'react'; | ||
import { EuiTimelineItem, EuiText, EuiCode } from '../../../../src/components'; | ||
import { | ||
EuiTimeline, | ||
EuiTimelineItem, | ||
EuiText, | ||
EuiCode, | ||
} from '../../../../src/components'; | ||
|
||
export default () => ( | ||
<EuiTimelineItem icon="dot" iconAriaLabel="Main icon" component="div"> | ||
<EuiText size="s"> | ||
<p> | ||
I'm the <EuiCode>children</EuiCode> and you can find the{' '} | ||
<EuiCode>icon</EuiCode> on the left side. | ||
</p> | ||
</EuiText> | ||
</EuiTimelineItem> | ||
<EuiTimeline aria-label="Timeline item example"> | ||
<EuiTimelineItem icon="dot" iconAriaLabel="Main icon"> | ||
<EuiText size="s"> | ||
<p> | ||
I'm the <EuiCode>children</EuiCode> and you can find the{' '} | ||
<EuiCode>icon</EuiCode> on the left side. | ||
</p> | ||
</EuiText> | ||
</EuiTimelineItem> | ||
</EuiTimeline> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ | |
|
||
exports[`EuiTimeline is rendered with items 1`] = ` | ||
<ol | ||
class="euiTimeline" | ||
class="euiTimeline emotion-euiTimeline-xl" | ||
role="list" | ||
> | ||
<li | ||
class="emotion-euiTimelineItem" | ||
class="emotion-euiTimelineItem-center" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon-center" | ||
|
@@ -41,7 +41,235 @@ exports[`EuiTimeline is rendered with items 1`] = ` | |
</div> | ||
</li> | ||
<li | ||
class="emotion-euiTimelineItem" | ||
class="emotion-euiTimelineItem-top" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon-top" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon__content" | ||
> | ||
<div | ||
aria-label="" | ||
class="euiAvatar euiAvatar--m euiAvatar--user emotion-euiAvatar-m-user-subdued" | ||
role="img" | ||
title="" | ||
> | ||
<span | ||
class="euiAvatar__icon" | ||
data-euiicon-type="bolt" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="emotion-euiTimelineItemEvent-top" | ||
> | ||
<p> | ||
<strong> | ||
[email protected] | ||
</strong> | ||
was invited to the project | ||
</p> | ||
</div> | ||
</li> | ||
</ol> | ||
`; | ||
|
||
exports[`EuiTimeline props gutterSize l is rendered 1`] = ` | ||
<ol | ||
class="euiTimeline emotion-euiTimeline-l" | ||
role="list" | ||
> | ||
<li | ||
class="emotion-euiTimelineItem-center" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon-center" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon__content" | ||
> | ||
<div | ||
aria-label="email" | ||
class="euiAvatar euiAvatar--m euiAvatar--user emotion-euiAvatar-m-user-subdued" | ||
role="img" | ||
title="email" | ||
> | ||
<span | ||
class="euiAvatar__icon" | ||
data-euiicon-type="email" | ||
> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="emotion-euiTimelineItemEvent-center" | ||
> | ||
<p> | ||
<strong> | ||
[email protected] | ||
</strong> | ||
was invited to the project | ||
</p> | ||
</div> | ||
</li> | ||
<li | ||
class="emotion-euiTimelineItem-top" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon-top" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon__content" | ||
> | ||
<div | ||
aria-label="" | ||
class="euiAvatar euiAvatar--m euiAvatar--user emotion-euiAvatar-m-user-subdued" | ||
role="img" | ||
title="" | ||
> | ||
<span | ||
class="euiAvatar__icon" | ||
data-euiicon-type="bolt" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="emotion-euiTimelineItemEvent-top" | ||
> | ||
<p> | ||
<strong> | ||
[email protected] | ||
</strong> | ||
was invited to the project | ||
</p> | ||
</div> | ||
</li> | ||
</ol> | ||
`; | ||
|
||
exports[`EuiTimeline props gutterSize m is rendered 1`] = ` | ||
<ol | ||
class="euiTimeline emotion-euiTimeline-m" | ||
role="list" | ||
> | ||
<li | ||
class="emotion-euiTimelineItem-center" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon-center" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon__content" | ||
> | ||
<div | ||
aria-label="email" | ||
class="euiAvatar euiAvatar--m euiAvatar--user emotion-euiAvatar-m-user-subdued" | ||
role="img" | ||
title="email" | ||
> | ||
<span | ||
class="euiAvatar__icon" | ||
data-euiicon-type="email" | ||
> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="emotion-euiTimelineItemEvent-center" | ||
> | ||
<p> | ||
<strong> | ||
[email protected] | ||
</strong> | ||
was invited to the project | ||
</p> | ||
</div> | ||
</li> | ||
<li | ||
class="emotion-euiTimelineItem-top" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon-top" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon__content" | ||
> | ||
<div | ||
aria-label="" | ||
class="euiAvatar euiAvatar--m euiAvatar--user emotion-euiAvatar-m-user-subdued" | ||
role="img" | ||
title="" | ||
> | ||
<span | ||
class="euiAvatar__icon" | ||
data-euiicon-type="bolt" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="emotion-euiTimelineItemEvent-top" | ||
> | ||
<p> | ||
<strong> | ||
[email protected] | ||
</strong> | ||
was invited to the project | ||
</p> | ||
</div> | ||
</li> | ||
</ol> | ||
`; | ||
|
||
exports[`EuiTimeline props gutterSize xl is rendered 1`] = ` | ||
<ol | ||
class="euiTimeline emotion-euiTimeline-xl" | ||
role="list" | ||
> | ||
<li | ||
class="emotion-euiTimelineItem-center" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon-center" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon__content" | ||
> | ||
<div | ||
aria-label="email" | ||
class="euiAvatar euiAvatar--m euiAvatar--user emotion-euiAvatar-m-user-subdued" | ||
role="img" | ||
title="email" | ||
> | ||
<span | ||
class="euiAvatar__icon" | ||
data-euiicon-type="email" | ||
> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="emotion-euiTimelineItemEvent-center" | ||
> | ||
<p> | ||
<strong> | ||
[email protected] | ||
</strong> | ||
was invited to the project | ||
</p> | ||
</div> | ||
</li> | ||
<li | ||
class="emotion-euiTimelineItem-top" | ||
> | ||
<div | ||
class="emotion-euiTimelineItemIcon-top" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.