mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Merge branch 'master' into day2-3-really
This commit is contained in:
@@ -209,4 +209,3 @@ const className = mergeStyles({
|
||||
```
|
||||
|
||||
2. Try to give a few components extra padding
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -34,7 +34,7 @@ export class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState
|
||||
styles={props => ({
|
||||
...(props.focused && {
|
||||
field: {
|
||||
backgroundColor: 'black'
|
||||
backgroundColor: '#c7e0f4'
|
||||
}
|
||||
})
|
||||
})}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user