Merge branch 'master' into day2-3-really

This commit is contained in:
Elizabeth Craig
2019-02-28 11:00:29 -08:00
committed by GitHub
33 changed files with 138 additions and 93 deletions

View File

@@ -209,4 +209,3 @@ const className = mergeStyles({
```
2. Try to give a few components extra padding

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { Stack, Customizer, mergeStyles, getTheme } from 'office-ui-fabric-react';
import { Stack, Customizer, mergeStyles, getTheme, loadTheme } from 'office-ui-fabric-react';
import { TodoFooter } from './TodoFooter';
import { TodoHeader } from './TodoHeader';
import { TodoList } from './TodoList';
@@ -13,6 +13,36 @@ const className = mergeStyles({
...getTheme().effects.elevation4
});
// Uncomment to see loadTheme
/*
loadTheme({
palette: {
themePrimary: '#c41515',
themeLighterAlt: '#fdf4f4',
themeLighter: '#f6d3d3',
themeLight: '#edaeae',
themeTertiary: '#dc6666',
themeSecondary: '#cb2c2c',
themeDarkAlt: '#b11313',
themeDark: '#951010',
themeDarker: '#6e0c0c',
neutralLighterAlt: '#d5b1b1',
neutralLighter: '#d2aeae',
neutralLight: '#c9a7a7',
neutralQuaternaryAlt: '#bc9c9c',
neutralQuaternary: '#b39595',
neutralTertiaryAlt: '#ac8f8f',
neutralTertiary: '#c38c8c',
neutralSecondary: '#b06e6e',
neutralPrimaryAlt: '#9c5454',
neutralPrimary: '#500e0e',
neutralDark: '#762a2a',
black: '#621a1a',
white: '#dbb5b5'
}
});
*/
export class TodoApp extends React.Component<any, Store> {
constructor(props) {
super(props);

View File

@@ -13,7 +13,7 @@ export const TodoFooter = (props: TodoFooterProps) => {
return (
<Stack horizontal horizontalAlign="space-between">
<Text>
{itemCount} item{itemCount > 1 ? 's' : ''} left
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
<DefaultButton onClick={() => props.clear()}>Clear Completed</DefaultButton>
</Stack>

View File

@@ -34,7 +34,7 @@ export class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState
styles={props => ({
...(props.focused && {
field: {
backgroundColor: 'black'
backgroundColor: '#c7e0f4'
}
})
})}

View File

@@ -16,7 +16,7 @@ export const TodoFooter = (props: TodoFooterProps) => {
return (
<Stack horizontal horizontalAlign="space-between">
<Text>
{itemCount} item{itemCount > 1 ? 's' : ''} left
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
<DefaultButton onClick={() => props.clear()}>Clear Completed</DefaultButton>
</Stack>