@primer/css 21.4.0-rc.3a7347b4 → 21.4.0-rc.53d91fb7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/autocomplete/suggester.scss +2 -0
  2. package/base/kbd.scss +1 -0
  3. package/base/typography-base.scss +4 -0
  4. package/branch-name/branch-name.scss +1 -0
  5. package/buttons/button.scss +5 -0
  6. package/buttons/misc.scss +6 -0
  7. package/dist/alerts.css.map +1 -1
  8. package/dist/autocomplete.css.map +1 -1
  9. package/dist/avatars.css.map +1 -1
  10. package/dist/blankslate.css.map +1 -1
  11. package/dist/box.css.map +1 -1
  12. package/dist/branch-name.css.map +1 -1
  13. package/dist/breadcrumb.css.map +1 -1
  14. package/dist/buttons.css.map +1 -1
  15. package/dist/color-modes.css +1 -1
  16. package/dist/color-modes.css.map +1 -1
  17. package/dist/dropdown.css.map +1 -1
  18. package/dist/forms.css.map +1 -1
  19. package/dist/header.css.map +1 -1
  20. package/dist/labels.css +1 -1
  21. package/dist/labels.css.map +1 -1
  22. package/dist/layout.css.map +1 -1
  23. package/dist/links.css.map +1 -1
  24. package/dist/loaders.css.map +1 -1
  25. package/dist/markdown.css.map +1 -1
  26. package/dist/meta.json +33 -33
  27. package/dist/navigation.css.map +1 -1
  28. package/dist/overlay.css.map +1 -1
  29. package/dist/pagination.css.map +1 -1
  30. package/dist/popover.css.map +1 -1
  31. package/dist/primer.css +2 -2
  32. package/dist/primer.css.map +1 -1
  33. package/dist/product.css +1 -1
  34. package/dist/product.css.map +1 -1
  35. package/dist/progress.css.map +1 -1
  36. package/dist/select-menu.css.map +1 -1
  37. package/dist/stats/color-modes.json +1 -1
  38. package/dist/stats/labels.json +1 -1
  39. package/dist/stats/primer.json +1 -1
  40. package/dist/stats/product.json +1 -1
  41. package/dist/subhead.css.map +1 -1
  42. package/dist/timeline.css.map +1 -1
  43. package/dist/toasts.css.map +1 -1
  44. package/dist/toggle-switch.css.map +1 -1
  45. package/dist/tooltips.css.map +1 -1
  46. package/dist/truncate.css.map +1 -1
  47. package/dist/utilities.css.map +1 -1
  48. package/forms/form-control.scss +12 -0
  49. package/forms/form-group.scss +5 -0
  50. package/forms/form-select.scss +1 -0
  51. package/forms/radio-group.scss +1 -0
  52. package/header/header.scss +3 -0
  53. package/labels/issue-labels.scss +2 -0
  54. package/labels/mixins.scss +5 -0
  55. package/layout/page-layout.scss +1 -0
  56. package/markdown/blob-csv.scss +3 -0
  57. package/markdown/footnotes.scss +2 -0
  58. package/markdown/headings.scss +3 -0
  59. package/markdown/lists.scss +2 -0
  60. package/markdown/markdown-body.scss +4 -0
  61. package/markdown/tables.scss +1 -0
  62. package/marketing/buttons/button.scss +6 -0
  63. package/marketing/type/typography.scss +22 -0
  64. package/navigation/filter-list.scss +3 -0
  65. package/navigation/sidenav.scss +1 -0
  66. package/navigation/subnav.scss +1 -0
  67. package/package.json +3 -3
  68. package/select-menu/select-menu.scss +11 -0
  69. package/support/mixins/misc.scss +3 -0
  70. package/support/mixins/typography.scss +21 -0
@@ -9,6 +9,7 @@
9
9
  &.small .filter-item {
10
10
  // stylelint-disable-next-line primer/spacing
11
11
  padding: 6px 12px;
12
+ // stylelint-disable-next-line primer/typography
12
13
  font-size: $font-size-small;
13
14
  }
14
15
 
@@ -29,6 +30,7 @@
29
30
  padding: var(--base-size-8) var(--base-size-16);
30
31
  margin-bottom: var(--base-size-4);
31
32
  overflow: hidden;
33
+ // stylelint-disable-next-line primer/typography
32
34
  font-size: $h5-size;
33
35
  color: var(--fgColor-muted, var(--color-fg-muted));
34
36
  text-decoration: none;
@@ -68,6 +70,7 @@
68
70
 
69
71
  .count {
70
72
  float: right;
73
+ // stylelint-disable-next-line primer/typography
71
74
  font-weight: $font-weight-bold;
72
75
  }
73
76
 
@@ -95,6 +95,7 @@
95
95
 
96
96
  .SideNav-subItem[aria-current]:not([aria-current='false']),
97
97
  .SideNav-subItem[aria-selected='true'] {
98
+ // stylelint-disable-next-line primer/typography
98
99
  font-weight: $font-weight-semibold;
99
100
  color: var(--fgColor-default, var(--color-fg-default));
100
101
  }
@@ -25,6 +25,7 @@
25
25
  float: left;
26
26
  // stylelint-disable-next-line primer/spacing
27
27
  padding: 5px var(--base-size-16);
28
+ // stylelint-disable-next-line primer/typography
28
29
  font-weight: $font-weight-semibold;
29
30
  // stylelint-disable-next-line primer/typography
30
31
  line-height: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/css",
3
- "version": "21.4.0-rc.3a7347b4",
3
+ "version": "21.4.0-rc.53d91fb7",
4
4
  "description": "The CSS implementation of GitHub's Primer Design System",
5
5
  "homepage": "https://primer.style/css",
6
6
  "author": "GitHub, Inc.",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@primer/primitives": "^9.0.3",
45
- "@primer/view-components": "^0.33.0"
45
+ "@primer/view-components": "^0.34.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@changesets/changelog-github": "^0.5.0",
@@ -71,7 +71,7 @@
71
71
  "postcss-simple-vars": "^7.0.1",
72
72
  "prettier": "^3.2.5",
73
73
  "semver": "^7.6.0",
74
- "stylelint": "^16.6.1",
74
+ "stylelint": "^16.9.0",
75
75
  "table": "^6.8.1"
76
76
  },
77
77
  "jest": {
@@ -88,6 +88,7 @@ $SelectMenu-max-height: 480px !default;
88
88
  height: auto;
89
89
  max-height: $SelectMenu-max-height;
90
90
  margin: var(--base-size-8) 0 var(--base-size-16) 0;
91
+ // stylelint-disable-next-line primer/typography
91
92
  font-size: $font-size-small;
92
93
  border-color: var(--borderColor-default, var(--color-border-default));
93
94
  // stylelint-disable-next-line primer/borders
@@ -117,7 +118,9 @@ $SelectMenu-max-height: 480px !default;
117
118
 
118
119
  .SelectMenu-title {
119
120
  flex: 1;
121
+ // stylelint-disable-next-line primer/typography
120
122
  font-size: $body-font-size;
123
+ // stylelint-disable-next-line primer/typography
121
124
  font-weight: $font-weight-bold;
122
125
 
123
126
  @include breakpoint(sm) {
@@ -128,6 +131,7 @@ $SelectMenu-max-height: 480px !default;
128
131
  .SelectMenu-closeButton {
129
132
  padding: var(--base-size-16);
130
133
  margin: calc(var(--base-size-16) * -1);
134
+ // stylelint-disable-next-line primer/typography
131
135
  line-height: 1;
132
136
  color: var(--fgColor-muted, var(--color-fg-muted));
133
137
  background-color: transparent;
@@ -160,6 +164,7 @@ $SelectMenu-max-height: 480px !default;
160
164
  width: 100%;
161
165
 
162
166
  @include breakpoint(sm) {
167
+ // stylelint-disable-next-line primer/typography
163
168
  font-size: $h5-size;
164
169
  }
165
170
  }
@@ -255,7 +260,9 @@ $SelectMenu-max-height: 480px !default;
255
260
  .SelectMenu-tab {
256
261
  flex: 1;
257
262
  padding: var(--base-size-8) var(--base-size-16);
263
+ // stylelint-disable-next-line primer/typography
258
264
  font-size: $font-size-small;
265
+ // stylelint-disable-next-line primer/typography
259
266
  font-weight: $font-weight-semibold;
260
267
  color: var(--fgColor-muted, var(--color-fg-muted));
261
268
  text-align: center;
@@ -322,7 +329,9 @@ $SelectMenu-max-height: 480px !default;
322
329
  .SelectMenu-divider {
323
330
  padding: var(--base-size-4) var(--base-size-16);
324
331
  margin: 0;
332
+ // stylelint-disable-next-line primer/typography
325
333
  font-size: $font-size-small;
334
+ // stylelint-disable-next-line primer/typography
326
335
  font-weight: $font-weight-semibold;
327
336
  color: var(--fgColor-muted, var(--color-fg-muted));
328
337
  background-color: var(--bgColor-muted, var(--color-canvas-subtle));
@@ -348,6 +357,7 @@ $SelectMenu-max-height: 480px !default;
348
357
  .SelectMenu-footer {
349
358
  z-index: 0; // Avoid top border from getting covered by the negative margin of the list
350
359
  padding: var(--base-size-8) var(--base-size-16);
360
+ // stylelint-disable-next-line primer/typography
351
361
  font-size: $font-size-small;
352
362
  color: var(--fgColor-muted, var(--color-fg-muted));
353
363
  text-align: center;
@@ -398,6 +408,7 @@ $SelectMenu-max-height: 480px !default;
398
408
  // Visible when a user clicks/taps on a list item
399
409
 
400
410
  .SelectMenu-item[aria-checked='true'] {
411
+ // stylelint-disable-next-line primer/typography
401
412
  font-weight: $font-weight-semibold;
402
413
  color: var(--fgColor-default, var(--color-fg-default));
403
414
 
@@ -33,6 +33,7 @@
33
33
  @mixin focusBoxShadowInset($outlineWidth: 1px, $outlineColor: var(--focus-outlineColor, var(--color-accent-fg))) {
34
34
  border-color: var(--focus-outlineColor, var(--color-accent-fg));
35
35
  outline: none;
36
+ // stylelint-disable-next-line primer/box-shadow
36
37
  box-shadow: inset 0 0 0 $outlineWidth $outlineColor;
37
38
  }
38
39
 
@@ -40,6 +41,7 @@
40
41
  // !important to override PCSS utilities
41
42
  @mixin targetBoxShadow($outlineWidth: 2px, $outlineColor: var(--focus-outlineColor, var(--color-accent-fg))) {
42
43
  outline: none !important;
44
+ // stylelint-disable-next-line primer/box-shadow
43
45
  box-shadow: 0 0 0 $outlineWidth $outlineColor !important;
44
46
  }
45
47
 
@@ -54,6 +56,7 @@
54
56
  @mixin focusOutlineOnEmphasis($outlineOffset: -2px, $outlineColor: var(--focus-outlineColor, var(--color-accent-fg))) {
55
57
  outline: 2px solid $outlineColor;
56
58
  outline-offset: $outlineOffset;
59
+ // stylelint-disable-next-line primer/box-shadow
57
60
  box-shadow: inset 0 0 0 3px var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
58
61
  }
59
62
 
@@ -10,32 +10,44 @@
10
10
  // Heading mixins for use within components
11
11
  // These match heading utilities in utilities/typography
12
12
  @mixin h1 {
13
+ // stylelint-disable-next-line primer/typography
13
14
  font-size: var(--h1-size, $h1-size);
15
+ // stylelint-disable-next-line primer/typography
14
16
  font-weight: $font-weight-bold;
15
17
  }
16
18
 
17
19
  @mixin h2 {
20
+ // stylelint-disable-next-line primer/typography
18
21
  font-size: var(--h2-size, $h2-size);
22
+ // stylelint-disable-next-line primer/typography
19
23
  font-weight: $font-weight-bold;
20
24
  }
21
25
 
22
26
  @mixin h3 {
27
+ // stylelint-disable-next-line primer/typography
23
28
  font-size: var(--h3-size, $h3-size);
29
+ // stylelint-disable-next-line primer/typography
24
30
  font-weight: $font-weight-bold;
25
31
  }
26
32
 
27
33
  @mixin h4 {
34
+ // stylelint-disable-next-line primer/typography
28
35
  font-size: var(--h4-size, $h4-size);
36
+ // stylelint-disable-next-line primer/typography
29
37
  font-weight: $font-weight-bold;
30
38
  }
31
39
 
32
40
  @mixin h5 {
41
+ // stylelint-disable-next-line primer/typography
33
42
  font-size: var(--h5-size, $h5-size);
43
+ // stylelint-disable-next-line primer/typography
34
44
  font-weight: $font-weight-bold;
35
45
  }
36
46
 
37
47
  @mixin h6 {
48
+ // stylelint-disable-next-line primer/typography
38
49
  font-size: var(--h6-size, $h6-size);
50
+ // stylelint-disable-next-line primer/typography
39
51
  font-weight: $font-weight-bold;
40
52
  }
41
53
 
@@ -43,28 +55,34 @@
43
55
  // There are no responsive mixins for h4-h6 because they are small
44
56
  // and don't need to be smaller on mobile.
45
57
  @mixin f1-responsive {
58
+ // stylelint-disable-next-line primer/typography
46
59
  font-size: var(--h1-size-mobile, $h1-size-mobile);
47
60
 
48
61
  // 32px on desktop
49
62
  @include breakpoint(md) {
63
+ // stylelint-disable-next-line primer/typography
50
64
  font-size: var(--h1-size, $h1-size);
51
65
  }
52
66
  }
53
67
 
54
68
  @mixin f2-responsive {
69
+ // stylelint-disable-next-line primer/typography
55
70
  font-size: var(--h2-size-mobile, $h2-size-mobile);
56
71
 
57
72
  // 24px on desktop
58
73
  @include breakpoint(md) {
74
+ // stylelint-disable-next-line primer/typography
59
75
  font-size: var(--h2-size, $h2-size);
60
76
  }
61
77
  }
62
78
 
63
79
  @mixin f3-responsive {
80
+ // stylelint-disable-next-line primer/typography
64
81
  font-size: var(--h3-size-mobile, $h3-size-mobile);
65
82
 
66
83
  // 20px on desktop
67
84
  @include breakpoint(md) {
85
+ // stylelint-disable-next-line primer/typography
68
86
  font-size: var(--h3-size, $h3-size);
69
87
  }
70
88
  }
@@ -75,17 +93,20 @@
75
93
  @mixin h1-responsive {
76
94
  @include f1-responsive;
77
95
 
96
+ // stylelint-disable-next-line primer/typography
78
97
  font-weight: $font-weight-bold;
79
98
  }
80
99
 
81
100
  @mixin h2-responsive {
82
101
  @include f2-responsive;
83
102
 
103
+ // stylelint-disable-next-line primer/typography
84
104
  font-weight: $font-weight-bold;
85
105
  }
86
106
 
87
107
  @mixin h3-responsive {
88
108
  @include f3-responsive;
89
109
 
110
+ // stylelint-disable-next-line primer/typography
90
111
  font-weight: $font-weight-bold;
91
112
  }