Skip to content

Commit fbbc8c1

Browse files
authored
Merge pull request #872 from primer/release-12.6.1
Release 12.6.1
2 parents 6607f33 + 89f3997 commit fbbc8c1

File tree

9 files changed

+90
-28
lines changed

9 files changed

+90
-28
lines changed

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
# 12.6.1
2+
3+
### :bug: Bug Fix
4+
- Remove non-ascii characters (en dashes?) from SCSS comments [#870](https://github.com/primer/css/pull/870)
5+
- Fix SideNav "jumping" in Safari [#868](https://github.com/primer/css/pull/868)
6+
7+
### :nail_care: Polish
8+
- Improve Select Menu spacing [#844](https://github.com/primer/css/pull/844)
9+
10+
### :memo: Documentation
11+
- Update colorable URL [#867](https://github.com/primer/css/pull/867)
12+
13+
### :house: Internal
14+
- Update changelog for 12.6.0 [#866](https://github.com/primer/css/pull/866)
15+
16+
### Committers
17+
- [@jonrohan](https://github.com/jonrohan)
18+
- [@kiendang](https://github.com/kiendang)
19+
- [@shawnbot](https://github.com/shawnbot)
20+
- [@shreve](https://github.com/shreve)
21+
- [@simurai](https://github.com/simurai)
22+
23+
# 12.6.0
24+
25+
### 🚀 Enhancements
26+
- Loading toast styles [#852](https://github.com/primer/css/pull/852)
27+
- Header component [#845](https://github.com/primer/css/pull/845)
28+
- Import `.octicon` CSS in the core bundle [#857](https://github.com/primer/css/pull/857)
29+
- Design update for blankslates [#861](https://github.com/primer/css/pull/861)
30+
- Don't let State labels wrap [#863](https://github.com/primer/css/pull/863)
31+
32+
### 📝 Documentation
33+
- Fix some links in linting docs [#856](https://github.com/primer/css/pull/856)
34+
- Updates to the development docs [#855](https://github.com/primer/css/pull/855)
35+
- Generate bundle source READMEs from a template [#859](https://github.com/primer/css/pull/859)
36+
- Render Octicon Ruby helper in docs [#847](https://github.com/primer/css/pull/847)
37+
38+
### 🏠 Internal
39+
- Add GitHub `styleguide.css` to Storybook [#849](https://github.com/primer/css/pull/849)
40+
41+
### Committers
42+
- [@ashygee](https://github.com/ashygee)
43+
- [@emilybrick](https://github.com/emilybrick)
44+
- [@jonrohan](https://github.com/jonrohan)
45+
- [@shawnbot](https://github.com/shawnbot)
46+
- [@vdepizzol](https://github.com/vdepizzol)
47+
148
# 12.5.0
249

350
### :rocket: Enhancement

docs/content/components/select-menu.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,32 @@ Add a `.SelectMenu-icon .octicon-check` icon and it will show up when `aria-chec
146146
</svg>
147147
Selected state
148148
</button>
149-
<button class="SelectMenu-item" role="menuitemcheckbox">Default state</button>
150-
<button class="SelectMenu-item" role="menuitemcheckbox">Default state</button>
149+
<button class="SelectMenu-item" role="menuitemcheckbox">
150+
<!-- <%= octicon "check", class: "SelectMenu-icon" %> -->
151+
<svg
152+
width="12"
153+
height="16"
154+
viewBox="0 0 12 16"
155+
class="octicon octicon-check SelectMenu-icon"
156+
aria-hidden="true"
157+
>
158+
<path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z" />
159+
</svg>
160+
Default state
161+
</button>
162+
<button class="SelectMenu-item" role="menuitemcheckbox">
163+
<!-- <%= octicon "check", class: "SelectMenu-icon" %> -->
164+
<svg
165+
width="12"
166+
height="16"
167+
viewBox="0 0 12 16"
168+
class="octicon octicon-check SelectMenu-icon"
169+
aria-hidden="true"
170+
>
171+
<path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5L12 5z" />
172+
</svg>
173+
Default state
174+
</button>
151175
</menu>
152176
</div>
153177
</div>
@@ -194,7 +218,7 @@ The list of items is arguably the most important subcomponent within the menu. B
194218
/>
195219
With an avatar
196220
</button>
197-
<button class="SelectMenu-item" role="menuitem">
221+
<button class="SelectMenu-item flex-justify-between" role="menuitem">
198222
With a status icon
199223
<!-- <%= octicon "primitive-dot", class: "color-green-5 ml-2" %> -->
200224
<svg
@@ -207,13 +231,13 @@ The list of items is arguably the most important subcomponent within the menu. B
207231
<path fill-rule="evenodd" d="M0 8c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4-4-1.8-4-4z" />
208232
</svg>
209233
</button>
210-
<button class="SelectMenu-item" role="menuitem">
234+
<button class="SelectMenu-item d-block" role="menuitem">
211235
With a <span class="Label bg-blue" title="Label: label">label</span>
212236
</button>
213237
<button class="SelectMenu-item" role="menuitem">
214238
With a counter <span class="Counter bg-gray-2 ml-1">16</span>
215239
</button>
216-
<button class="SelectMenu-item" role="menuitem">
240+
<button class="SelectMenu-item d-block" role="menuitem">
217241
<h5>With a heading</h5>
218242
<span>and some longer description</span>
219243
</button>

docs/content/utilities/colors.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Use color utilities to apply color to the background of elements, text, and bord
2121

2222
## Background colors
2323

24-
Background colors are most commonly used for filling large blocks of content or areas with a color. When selecting a background color, make sure the foreground color contrast passes a minimum WCAG accessibility rating of [level AA](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html). Meeting these standards ensures that content is accessible by everyone, regardless of disability or user device. You can [check your color combination with this demo site](http://jxnblk.com/colorable/demos/text/). For more information, read our [accessibility standards](../principles/accessibility).
24+
Background colors are most commonly used for filling large blocks of content or areas with a color. When selecting a background color, make sure the foreground color contrast passes a minimum WCAG accessibility rating of [level AA](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html). Meeting these standards ensures that content is accessible by everyone, regardless of disability or user device. You can [check your color combination with this demo site](https://colorable.jxnblk.com/). For more information, read our [accessibility standards](../principles/accessibility).
2525

2626
### Background utilities
2727

@@ -39,7 +39,7 @@ Background colors are most commonly used for filling large blocks of content or
3939

4040
## Text colors
4141

42-
Use text color utilities to set text or [Octicons](https://octicons.github.com) to a specific color. Color contrast must pass a minimum WCAG accessibility rating of [level AA](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html). This ensures that viewers who cannot see the full color spectrum are able to read the text. To customize outside of the suggested combinations below, we recommend using this [color contrast testing tool](http://jxnblk.com/colorable/demos/text/). For more information, read our [accessibility standards](../principles/accessibility).
42+
Use text color utilities to set text or [Octicons](https://octicons.github.com) to a specific color. Color contrast must pass a minimum WCAG accessibility rating of [level AA](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html). This ensures that viewers who cannot see the full color spectrum are able to read the text. To customize outside of the suggested combinations below, we recommend using this [color contrast testing tool](https://colorable.jxnblk.com/). For more information, read our [accessibility standards](../principles/accessibility).
4343

4444
These are our most common text with background color combinations. They don't all pass accessibility standards currently, but will be updated in the future. **⚠️ Any of the combinations with a warning icon must be used with caution**.
4545

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@primer/css",
3-
"version": "12.6.0",
3+
"version": "12.6.1",
44
"description": "Primer is the CSS framework that powers GitHub's front-end design. primer includes 23 packages that are grouped into 3 core meta-packages for easy install. Each package and meta-package is independently versioned and distributed via npm, so it's easy to include all or part of Primer within your own project.",
55
"homepage": "https://primer.style/css",
66
"author": "GitHub, Inc.",

src/navigation/sidenav.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
width: 3px;
3333
pointer-events: none;
3434
content: "";
35-
background-color: $gray-300;
36-
transition: transform 0.24s ease-in;
37-
transform: scaleX(0);
38-
transform-origin: center left;
3935
}
4036
}
4137

@@ -50,8 +46,7 @@
5046

5147
// Bar on the left
5248
&::before {
53-
transition: transform 0.12s ease-out;
54-
transform: scaleX(1);
49+
background-color: $gray-300;
5550
}
5651
}
5752

@@ -68,7 +63,6 @@
6863
// Bar on the left
6964
&::before {
7065
background-color: $orange-600;
71-
transform: scaleX(1);
7266
}
7367
}
7468

src/select-menu/select-menu.scss

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
padding: $spacer-3;
104104

105105
@include breakpoint(sm) {
106-
padding: $spacer-2;
106+
padding-top: $spacer-2;
107+
padding-bottom: $spacer-2;
107108
}
108109
}
109110

@@ -173,9 +174,10 @@
173174
// The interactive element used to make a selection
174175

175176
.SelectMenu-item {
176-
display: block;
177+
display: flex;
178+
align-items: center;
177179
width: 100%;
178-
padding: $spacer-3 $spacer-5;
180+
padding: $spacer-3;
179181
overflow: hidden;
180182
color: $text-gray;
181183
text-align: left;
@@ -199,9 +201,8 @@
199201
// The icon shown on the left of a list item. Typically a check icon.
200202

201203
.SelectMenu-icon {
202-
position: absolute;
203-
height: 1.5em; // Mimics line-height to vertically center the icon
204-
margin-left: -20px;
204+
width: $spacer-3; // fixed width to make sure following content aligns
205+
margin-right: $spacer-2;
205206
visibility: hidden;
206207
transition: transform 0.12s cubic-bezier(0.5, 0.1, 1, 0.5), visibility 0s 0.12s linear;
207208
transform: scale(0);
@@ -296,10 +297,6 @@
296297
&:last-child {
297298
border-bottom: 0;
298299
}
299-
300-
@include breakpoint(sm) {
301-
padding: $spacer-1 $spacer-2;
302-
}
303300
}
304301

305302
// Footer

src/support/mixins/typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
// Responsive heading mixins
43-
// There are no responsive mixins for h4h6 because they are small
43+
// There are no responsive mixins for h4-h6 because they are small
4444
// and don't need to be smaller on mobile.
4545
@mixin f1-responsive {
4646
font-size: $h1-size-mobile;

src/support/variables/typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// stylelint-disable declaration-bang-space-before
33

44
// Heading sizes - mobile
5-
// h4h6 remain the same size on both mobile & desktop
5+
// h4-h6 remain the same size on both mobile & desktop
66
$h00-size-mobile: 40px !default;
77
$h0-size-mobile: 32px !default;
88
$h1-size-mobile: 26px !default;

0 commit comments

Comments
 (0)