File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { Box, Grid } from '../src'
16
16
17
17
[ Grid Layout] ( https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout )
18
18
19
- - Item conrolled with ` col ` , ` row ` prop in ` Grid.Item ` component
19
+ - Item conrolled with ` column ` , ` row ` prop in ` Grid.Item ` component
20
20
- [ Space] ( https://github.com/exah/pss/blob/master/docs/api.md#space ) between items conrolled with ` gap ` , ` columnGap ` and ` rowGap ` props
21
21
- [ Box alignment] ( https://rachelandrew.co.uk/css/cheatsheets/box-alignment ) styles
22
22
@@ -129,7 +129,7 @@ import { Grid } from 'pss-components'
129
129
</Grid >
130
130
</Playground >
131
131
132
- ### Control each item ` col ` and ` row ` props
132
+ ### Control each item ` column ` and ` row ` props
133
133
134
134
<Playground >
135
135
<Grid templateColumns = ' repeat(12, 1fr)' gap = { 1 } >
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ With values from `media` prop:
38
38
<MatchMediaConsumer >
39
39
{ (matchedMedia ) => (
40
40
<Box >
41
- Current media: { matchedMedia .key }
41
+ Current media: { matchedMedia .matches . join ( ' , ' ) }
42
42
</Box >
43
43
)}
44
44
</MatchMediaConsumer >
@@ -52,7 +52,7 @@ From `theme`:
52
52
<MatchMediaConsumer >
53
53
{ (matchedMedia ) => (
54
54
<Box >
55
- Current media: { matchedMedia .key }
55
+ Current media: { matchedMedia .matches . join ( ' , ' ) }
56
56
</Box >
57
57
)}
58
58
</MatchMediaConsumer >
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ import { ThemeDefaults } from 'pss-components'
24
24
25
25
<Playground >
26
26
<Box >
27
- <Box tm = { true } ratio = { 16 / 9 } p = { 1 } mb = { 1 } >
27
+ <Box tm = ' auto ' ratio = { 16 / 9 } p = { 1 } mb = { 1 } >
28
28
Content
29
29
</Box >
30
30
<ThemeDefaults palette = ' inverted' >
31
- <Box tm = { true } ratio = { 16 / 9 } p = { 1 } >
31
+ <Box tm = ' auto ' ratio = { 16 / 9 } p = { 1 } >
32
32
Content
33
33
</Box >
34
34
</ThemeDefaults >
You can’t perform that action at this time.
0 commit comments