Skip to content

Commit 371213f

Browse files
authored
Merge pull request #832 from primer/release-12.5.0
Primer 12.5.0
2 parents e4f69db + b1cf8d9 commit 371213f

File tree

32 files changed

+2660
-1067
lines changed

32 files changed

+2660
-1067
lines changed

CHANGELOG.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# 12.5.0
2+
3+
### :rocket: Enhancement
4+
- Add `.Toast` component [#831](https://github.com/primer/css/pull/831)
5+
- Add `.SideNav` component [#827](https://github.com/primer/css/pull/827)
6+
- Add `.SelectMenu` component [#808](https://github.com/primer/css/pull/808)
7+
- Add `font-display: swap` to `@font-face` declarations [#780](https://github.com/primer/css/pull/780)
8+
- Add `flex-grow-0`, `flex-order-[1,2,none]` and `width-auto` utilities [#763](https://github.com/primer/css/pull/763)
9+
- Change default for `$marketing-font-path` to `/fonts/` [#837](https://github.com/primer/css/pull/837)
10+
11+
### :bug: Bug Fix
12+
- Improve monospaced font on Chrome Android [#812](https://github.com/primer/css/pull/812)
13+
14+
### :memo: Documentation
15+
- Add multi-word naming conventions to BEM docs [#836](https://github.com/primer/css/pull/836)
16+
- Color system docs updates [#811](https://github.com/primer/css/pull/811)
17+
- Color utility table tweaks [#842](https://github.com/primer/css/pull/842)
18+
- Fix markdown typos in Contributing docs page [#846](https://github.com/primer/css/pull/846)
19+
20+
### Committers
21+
- [@ampinsk](https://github.com/ampinsk)
22+
- [@emilybrick](https://github.com/emilybrick)
23+
- [@emplums](https://github.com/emplums)
24+
- [@jonrohan](https://github.com/jonrohan)
25+
- [@shawnbot](https://github.com/shawnbot)
26+
- [@simurai](https://github.com/simurai)
27+
- [@skullface](https://github.com/skullface)
28+
- [@vdepizzol](https://github.com/vdepizzol)
29+
130
# 12.4.1
231

332
### :bug: Bug fixes
@@ -87,7 +116,7 @@
87116
# 12.2.2
88117

89118
### :bug: Bug Fix
90-
- Fix hide utilities when toggling between breakpoints [#746](https://github.com/primer/css/pull/746)
119+
- Fix hide utilities when toggling between breakpoints [#746](https://github.com/primer/css/pull/746)
91120

92121
### :house: Internal
93122
- Prevent Storybook publish failures from breaking builds on `master` [#728](https://github.com/primer/css/pull/728)

docs/Table.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import styled from 'styled-components'
2+
import PropTypes from 'prop-types'
3+
import {Box} from '@primer/components'
4+
import {fontSize} from 'styled-system'
5+
6+
const Table = styled.table`
7+
display: table !important;
8+
border-collapse: separate;
9+
border-spacing: ${props => props.borderSpacing};
10+
${fontSize};
11+
12+
tr,
13+
td,
14+
th {
15+
border: 0 !important;
16+
}
17+
18+
caption,
19+
td,
20+
th {
21+
padding: ${props => props.cellPadding} !important;
22+
text-align: left;
23+
}
24+
25+
tr {
26+
background-color: transparent !important;
27+
}
28+
`
29+
30+
Table.propTypes = {
31+
borderSpacing: PropTypes.any,
32+
cellPadding: PropTypes.any,
33+
...fontSize.propTypes
34+
}
35+
36+
Table.defaultProps = {
37+
borderSpacing: 0,
38+
cellPadding: '4px 8px',
39+
fontSize: [1, 1, 2]
40+
}
41+
42+
Table.Row = styled(Box).attrs({as: 'tr'})``
43+
Table.Cell = styled(Box).attrs({as: 'td'})``
44+
45+
export default Table

0 commit comments

Comments
 (0)