Skip to content

Commit

Permalink
docs use pin icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns committed Dec 21, 2018
1 parent 724393c commit c06d88f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src-docs/src/views/list_group/list_group_link_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class extends Component {
extraAction={{
color: 'subdued',
onClick: this.link1Clicked,
iconType: favorite1 === 'link1' ? 'check' : 'starEmpty',
iconType: favorite1 === 'link1' ? 'pinFilled' : 'pin',
iconSize: 's',
'aria-label': 'Favorite link1',
// style: { opacity: favorite1 === 'link1' ? 1 : 0.5},
Expand All @@ -126,7 +126,7 @@ export default class extends Component {
extraAction={{
color: 'subdued',
onClick: this.link2Clicked,
iconType: favorite2 === 'link2' ? 'check' : 'starEmpty',
iconType: favorite2 === 'link2' ? 'pinFilled' : 'pin',
iconSize: 's',
'aria-label': 'Favorite link2',
}}
Expand All @@ -147,12 +147,11 @@ export default class extends Component {
extraAction={{
color: 'subdued',
onClick: this.link3Clicked,
iconType: favorite3 === 'link3' ? 'check' : 'starEmpty',
iconType: favorite3 === 'link3' ? 'pinFilled' : 'pin',
iconSize: 's',
'aria-label': 'Favorite link3',
}}
alwaysShowAction={favorite3 === 'link3'}
isActive
/>

<EuiListGroupItem
Expand All @@ -170,9 +169,9 @@ export default class extends Component {
extraAction={{
color: 'subdued',
onClick: () => window.alert('Action clicked'),
iconType: 'starEmpty',
iconType: 'pin',
iconSize: 's',
'aria-label': 'Open dummy prompt',
'aria-label': 'Favorite link4',
isDisabled: true,
}}
isDisabled
Expand Down
4 changes: 2 additions & 2 deletions src-docs/src/views/list_group/list_group_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ const myContent = [
size: 's',
},
{
label: 'Second link',
label: 'Second link is active',
href: window.location.href,
isActive: true,
iconType: 'clock',
size: 's',
},
{
label: 'Third link',
label: 'Third link is disabled',
href: window.location.href,
isDisabled: true,
iconType: 'compute',
Expand Down

0 comments on commit c06d88f

Please sign in to comment.