Skip to content

Commit fb4c581

Browse files
committed
Merge branch 'main' of https://github.com/primer/css into global-focus-styles
2 parents 6381c0a + 357d3f2 commit fb4c581

File tree

133 files changed

+6184
-4904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+6184
-4904
lines changed

.changeset/beige-hairs-jam.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/dry-clocks-speak.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/lemon-games-swim.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/six-avocados-promise.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
git-tag-version=false
2-
save-exact=true
32
package-lock=false

CHANGELOG.md

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,85 @@
11
# @primer/css
22

3+
## 19.5.0
4+
5+
### Minor Changes
6+
7+
- [#1948](https://github.com/primer/css/pull/1948) [`6a83a92b`](https://github.com/primer/css/commit/6a83a92b4332d577cdd72eee084e3f2c41b588ee) Thanks [@simurai](https://github.com/simurai)! - Add `open` and `closed` color roles
8+
9+
* [#1961](https://github.com/primer/css/pull/1961) [`a35a8bdc`](https://github.com/primer/css/commit/a35a8bdcc17906848fcb486842d2345db0441c7c) Thanks [@jonrohan](https://github.com/jonrohan)! - Default .PageLayout to display block
10+
11+
### Patch Changes
12+
13+
- [#1954](https://github.com/primer/css/pull/1954) [`30f29d38`](https://github.com/primer/css/commit/30f29d383256a7d4023a859fdeee44471307159d) Thanks [@simurai](https://github.com/simurai)! - Fix `input-block` in `form-group`
14+
15+
* [#1956](https://github.com/primer/css/pull/1956) [`39063461`](https://github.com/primer/css/commit/3906346182ed983d9725fd95da41b21424378b3e) Thanks [@jonrohan](https://github.com/jonrohan)! - Upgrading @primer/stylelint-config@12.3.2
16+
17+
- [#1931](https://github.com/primer/css/pull/1931) [`e5c5312e`](https://github.com/primer/css/commit/e5c5312ec8bf139f6c94d2f70ceecd4b3cd9fd82) Thanks [@vdepizzol](https://github.com/vdepizzol)! - Page layout api updates renaming spacing options in storybook
18+
19+
* [#1950](https://github.com/primer/css/pull/1950) [`7c85c500`](https://github.com/primer/css/commit/7c85c500569fe6e1b29665c2eed37d58625ab06f) Thanks [@hectahertz](https://github.com/hectahertz)! - Fix sequence of content in Subhead
20+
21+
- [#1942](https://github.com/primer/css/pull/1942) [`0450ccbb`](https://github.com/primer/css/commit/0450ccbb86104564c7d4038eb68989f370014fa1) Thanks [@reeceatkinson](https://github.com/reeceatkinson)! - Added line break to docs
22+
23+
* [#1953](https://github.com/primer/css/pull/1953) [`3a91a29a`](https://github.com/primer/css/commit/3a91a29a822a28ea9679fbbb90250fc039057f23) Thanks [@hectahertz](https://github.com/hectahertz)! - Use `<h2>` instead of `<div>` on Subhead-heading docs
24+
25+
- [#1949](https://github.com/primer/css/pull/1949) [`dab83198`](https://github.com/primer/css/commit/dab83198c3bf1c7e03826b8cd498b8c48c9a2869) Thanks [@heiskr](https://github.com/heiskr)! - Render headings inline when in a `<summary>`
26+
27+
* [#1978](https://github.com/primer/css/pull/1978) [`a00e6bce`](https://github.com/primer/css/commit/a00e6bce01b368d9cb6da5ec2af1d833f4d785c1) Thanks [@langermank](https://github.com/langermank)! - Handle pointer-events on ActionList visuals
28+
29+
- [#1977](https://github.com/primer/css/pull/1977) [`80bf9d9d`](https://github.com/primer/css/commit/80bf9d9dea6fe7fbb0837fea265ec95cbbbd75d6) Thanks [@jonrohan](https://github.com/jonrohan)! - [Bug Fix] Adding white-space nowrap to Labels
30+
31+
## 19.4.0
32+
33+
### Minor Changes
34+
35+
- [#1937](https://github.com/primer/css/pull/1937) [`67f08009`](https://github.com/primer/css/commit/67f08009ef458088b9fda6267ab25ad6d0a514aa) Thanks [@langermank](https://github.com/langermank)! - TreeView single item nesting
36+
37+
* [#1905](https://github.com/primer/css/pull/1905) [`50221a54`](https://github.com/primer/css/commit/50221a5486d28c54dc1f578b459addd867bd01d3) Thanks [@langermank](https://github.com/langermank)! - Refactors NavigationList to better handle accessibility. Backwards compatible for TreeView CSS.
38+
39+
- [#1936](https://github.com/primer/css/pull/1936) [`c53ecdff`](https://github.com/primer/css/commit/c53ecdff5442cf4ac5da0d1e2ba45871ab662855) Thanks [@khiga8](https://github.com/khiga8)! - Deprecating `.tooltipped` CSS classes
40+
41+
### Patch Changes
42+
43+
- [#1928](https://github.com/primer/css/pull/1928) [`0fb67895`](https://github.com/primer/css/commit/0fb6789555652860cfa5178b60433eb2c3d2575c) Thanks [@simurai](https://github.com/simurai)! - Fix `<sup><a>` from getting wrapped with `[ ]`
44+
45+
## 19.3.0
46+
47+
### Minor Changes
48+
49+
- [#1876](https://github.com/primer/css/pull/1876) [`bcf447ab`](https://github.com/primer/css/commit/bcf447ab226e6043dd47c1fcc395ba104af866d4) Thanks [@vdepizzol](https://github.com/vdepizzol)! - Add mono font stack to <samp> tag
50+
51+
* [#1919](https://github.com/primer/css/pull/1919) [`21085f5c`](https://github.com/primer/css/commit/21085f5c6cc538b5014a47de76642554a4291cc6) Thanks [@hectahertz](https://github.com/hectahertz)! - Add blankslate classes to replace utilities
52+
53+
### Patch Changes
54+
55+
- [#1892](https://github.com/primer/css/pull/1892) [`55bd498b`](https://github.com/primer/css/commit/55bd498b7357e86659ac574f0f745f7b420fb6d3) Thanks [@langermank](https://github.com/langermank)! - Patch: Fix ActionList--divided for label with inline description scenarios
56+
57+
* [#1906](https://github.com/primer/css/pull/1906) [`f02d9a3e`](https://github.com/primer/css/commit/f02d9a3e4e86c2659a9f507995bcb90c5226e34e) Thanks [@jonrohan](https://github.com/jonrohan)! - Upgrading @primer/stylelint-config@12.3.0 and fixing violations
58+
59+
- [#1908](https://github.com/primer/css/pull/1908) [`84581e96`](https://github.com/primer/css/commit/84581e96aee50ff3883907dfe1069701edd1c24a) Thanks [@simurai](https://github.com/simurai)! - Reduce size of `Label--inline`
60+
61+
* [#1890](https://github.com/primer/css/pull/1890) [`74d0438b`](https://github.com/primer/css/commit/74d0438bd4dbaed447b553c5d3c8b945da282836) Thanks [@andrialexandrou](https://github.com/andrialexandrou)! - Adds --color-accent-emphasis and --color-fg-on-emphasis rules for Windows High Contrast Mode
62+
63+
- [#1882](https://github.com/primer/css/pull/1882) [`4a06aba1`](https://github.com/primer/css/commit/4a06aba1d3f80bcc228ff4360d0e02d5ace158ff) Thanks [@tqwewe](https://github.com/tqwewe)! - Fix layout gutter none styles
64+
65+
* [#1894](https://github.com/primer/css/pull/1894) [`d1adf595`](https://github.com/primer/css/commit/d1adf595308afb97f83c5ca172222944189a5961) Thanks [@simurai](https://github.com/simurai)! - Make `pagination` responsive by default
66+
67+
## 19.2.0
68+
69+
### Minor Changes
70+
71+
- [#1737](https://github.com/primer/css/pull/1737) [`6b4089d8`](https://github.com/primer/css/commit/6b4089d8b37174ca061762c56b5e4134a54cf4ef) Thanks [@vdepizzol](https://github.com/vdepizzol)! - Adds new PageLayout component CSS with Storybook documentation
72+
73+
### Patch Changes
74+
75+
- [#1855](https://github.com/primer/css/pull/1855) [`8f2e7534`](https://github.com/primer/css/commit/8f2e7534ecbdb3d0e773d60c725b55dc4bb263e2) Thanks [@simurai](https://github.com/simurai)! - Bump primer/primitives to `7.4.0`
76+
77+
* [#1869](https://github.com/primer/css/pull/1869) [`868f61a1`](https://github.com/primer/css/commit/868f61a199df14862922d52905de66cdb1e1c192) Thanks [@jdanyow](https://github.com/jdanyow)! - Minor bugfix for AvatarStack. Removing the box-shadow from the AvatarStack-body on hover.
78+
79+
- [#1856](https://github.com/primer/css/pull/1856) [`cbe3fb56`](https://github.com/primer/css/commit/cbe3fb56e4c7ee6bfe803eb0c15e15ab95d84157) Thanks [@langermank](https://github.com/langermank)! - ActionList item outlines for high contrast theme
80+
81+
* [#1870](https://github.com/primer/css/pull/1870) [`815daff9`](https://github.com/primer/css/commit/815daff9f07d8096d572cf75bee17284f36492f6) Thanks [@vdepizzol](https://github.com/vdepizzol)! - [ActionList] Add hover to `aria-current` elements and other micro interactions
82+
383
## 19.1.1
484

585
### Patch Changes
@@ -237,7 +317,7 @@
237317

238318
### Patch Changes
239319

240-
- [#1540](https://github.com/primer/css/pull/1540) [`6b6e89a8`](https://github.com/primer/css/commit/6b6e89a8bff2319ef75d25217dafc272a5e597f0) Thanks [@joelhawksley](https://github.com/joelhawksley)! - Use standard lifecyle milestones for statuses.
320+
- [#1540](https://github.com/primer/css/pull/1540) [`6b6e89a8`](https://github.com/primer/css/commit/6b6e89a8bff2319ef75d25217dafc272a5e597f0) Thanks [@joelhawksley](https://github.com/joelhawksley)! - Use standard lifecycle milestones for statuses.
241321

242322
* [#1528](https://github.com/primer/css/pull/1528) [`303cacae`](https://github.com/primer/css/commit/303cacae77244a9e0de02b4caee2a8c01097aced) Thanks [@koddsson](https://github.com/koddsson)! - Convert package to a ES module
243323

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="300px" src="./docs/src/readme.png">
2+
<img width="300px" alt="" src="./docs/src/readme.png">
33
</p>
44

55
<h1 align="center">Primer CSS</h1>
@@ -14,7 +14,7 @@
1414
<img alt="" src="https://github.com/primer/css/actions/workflows/ci.yml/badge.svg">
1515
</a>
1616
<a aria-label="contributors graph" href="https://github.com/primer/css/graphs/contributors">
17-
<img src="https://img.shields.io/github/contributors/primer/css.svg">
17+
<img alt="" src="https://img.shields.io/github/contributors/primer/css.svg">
1818
</a>
1919
<a aria-label="last commit" href="https://github.com/primer/css/commits/main">
2020
<img alt="" src="https://img.shields.io/github/last-commit/primer/css.svg">

docs/.storybook/preview.js

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,19 @@ export const parameters = {
101101
html: {
102102
root: '#story' // target id for html tab (should be direct parent of <Story /> for easy copy/paste)
103103
},
104-
viewport: {viewports: customViewports}
104+
viewport: {viewports: customViewports},
105+
options: {
106+
storySort: (storyA, storyB) => {
107+
if (storyA[1].title.includes('Examples')) {
108+
// if both are stories, sort alphabetically
109+
if (storyB[1].title.includes('Examples')) return -1
110+
// if only 1 is a story, push the examples story down
111+
else return 1
112+
}
113+
// sort as usual = alphabetical
114+
return -1
115+
}
116+
}
105117
}
106118

107119
const themes = [
@@ -131,9 +143,10 @@ export const decorators = [
131143
(Story, context) => {
132144
return (
133145
<div class="theme-wrap">
134-
{ themes.map((theme) => {
135-
if (context.globals.theme === theme || context.globals.theme === 'all') {
136-
return <div
146+
{themes.map(theme => {
147+
if (context.globals.theme === theme || context.globals.theme === 'all') {
148+
return (
149+
<div
137150
id="story"
138151
className="story-wrap"
139152
data-color-mode={theme.startsWith('dark') ? 'dark' : 'light'}
@@ -142,8 +155,9 @@ export const decorators = [
142155
>
143156
<Story {...context} />
144157
</div>
145-
}
146-
})}
158+
)
159+
}
160+
})}
147161
</div>
148162
)
149163
}

0 commit comments

Comments
 (0)