-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update selectable list example in docsite (#18639)
* update selectable list background * changelog
- Loading branch information
1 parent
441e322
commit 27cc926
Showing
5 changed files
with
71 additions
and
42 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
62 changes: 34 additions & 28 deletions
62
packages/fluentui/docs/src/examples/components/List/Types/ListExampleSelectable.tsx
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,34 +1,40 @@ | ||
import * as React from 'react'; | ||
import { List, Image } from '@fluentui/react-northstar'; | ||
import { List, Image, Box } from '@fluentui/react-northstar'; | ||
|
||
const ListExampleSelectable = () => ( | ||
<List selectable> | ||
<List.Item | ||
media={ | ||
<Image src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/RobertTolbert.jpg" avatar /> | ||
} | ||
header="Robert Tolbert" | ||
headerMedia="7:26:56 AM" | ||
index={0} | ||
content="Program the sensor to the SAS alarm through the haptic SQL card!" | ||
/> | ||
<List.Item | ||
media={ | ||
<Image src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/CelesteBurton.jpg" avatar /> | ||
} | ||
header="Celeste Burton" | ||
headerMedia="11:30:17 PM" | ||
index={1} | ||
content="Use the online FTP application to input the multi-byte application!" | ||
/> | ||
<List.Item | ||
media={<Image src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/CecilFolk.jpg" avatar />} | ||
header="Cecil Folk" | ||
headerMedia="5:22:40 PM" | ||
index={2} | ||
content="The GB pixel is down, navigate the virtual interface!" | ||
/> | ||
</List> | ||
<Box | ||
styles={({ theme: { siteVariables } }) => ({ | ||
backgroundColor: siteVariables.colorScheme.default.background4, | ||
})} | ||
> | ||
<List selectable> | ||
<List.Item | ||
media={ | ||
<Image src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/RobertTolbert.jpg" avatar /> | ||
} | ||
header="Robert Tolbert" | ||
headerMedia="7:26:56 AM" | ||
index={0} | ||
content="Program the sensor to the SAS alarm through the haptic SQL card!" | ||
/> | ||
<List.Item | ||
media={ | ||
<Image src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/CelesteBurton.jpg" avatar /> | ||
} | ||
header="Celeste Burton" | ||
headerMedia="11:30:17 PM" | ||
index={1} | ||
content="Use the online FTP application to input the multi-byte application!" | ||
/> | ||
<List.Item | ||
media={<Image src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/CecilFolk.jpg" avatar />} | ||
header="Cecil Folk" | ||
headerMedia="5:22:40 PM" | ||
index={2} | ||
content="The GB pixel is down, navigate the virtual interface!" | ||
/> | ||
</List> | ||
</Box> | ||
); | ||
|
||
export default ListExampleSelectable; |
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