updating step 3 with more info in exercise and info about styles prop

This commit is contained in:
Ken
2019-02-22 14:12:21 -08:00
parent 3d9f44b528
commit 593df3f4e1
5 changed files with 73 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ import { TeamsCustomizations } from '@uifabric/theme-samples';
let index = 0;
// TODO: Change this to add other CSS styles like backgroundColor, fontSize, etc
const className = mergeStyles({
padding: 25,
...getTheme().effects.elevation4

View File

@@ -12,6 +12,9 @@ interface TodoFooterProps {
export const TodoFooter = (props: TodoFooterProps) => {
const itemCount = Object.keys(props.todos).filter(id => !props.todos[id].completed).length;
// TODO: play around with the DefaultButton component below with a "styles" prop
// - try it with an object: styles={{ ... }}
// - try it with a function: styles={props => ({ ... })}
return (
<Stack horizontal horizontalAlign="space-between">
<Text>