@primer/css 21.3.6-rc.13cf9bf9 → 21.4.0-rc.370c01af

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 (112) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/autocomplete/suggester.scss +9 -0
  3. package/base/base.scss +2 -0
  4. package/base/kbd.scss +2 -0
  5. package/base/typography-base.scss +4 -0
  6. package/box/box-overlay.scss +3 -0
  7. package/branch-name/branch-name.scss +2 -0
  8. package/buttons/button-group.scss +12 -0
  9. package/buttons/button.scss +8 -0
  10. package/buttons/misc.scss +12 -0
  11. package/dist/alerts.css.map +1 -1
  12. package/dist/autocomplete.css +1 -1
  13. package/dist/autocomplete.css.map +1 -1
  14. package/dist/avatars.css +1 -1
  15. package/dist/avatars.css.map +1 -1
  16. package/dist/blankslate.css.map +1 -1
  17. package/dist/box.css +1 -1
  18. package/dist/box.css.map +1 -1
  19. package/dist/branch-name.css.map +1 -1
  20. package/dist/breadcrumb.css +1 -1
  21. package/dist/breadcrumb.css.map +1 -1
  22. package/dist/buttons.css.map +1 -1
  23. package/dist/color-modes.css +1 -1
  24. package/dist/color-modes.css.map +1 -1
  25. package/dist/core.css +1 -1
  26. package/dist/core.css.map +1 -1
  27. package/dist/dropdown.css.map +1 -1
  28. package/dist/forms.css +1 -1
  29. package/dist/forms.css.map +1 -1
  30. package/dist/header.css.map +1 -1
  31. package/dist/labels.css +1 -1
  32. package/dist/labels.css.map +1 -1
  33. package/dist/layout.css +1 -1
  34. package/dist/layout.css.map +1 -1
  35. package/dist/links.css +1 -1
  36. package/dist/links.css.map +1 -1
  37. package/dist/loaders.css.map +1 -1
  38. package/dist/markdown.css +1 -1
  39. package/dist/markdown.css.map +1 -1
  40. package/dist/meta.json +51 -51
  41. package/dist/navigation.css +1 -1
  42. package/dist/navigation.css.map +1 -1
  43. package/dist/overlay.css +1 -1
  44. package/dist/overlay.css.map +1 -1
  45. package/dist/pagination.css.map +1 -1
  46. package/dist/popover.css +1 -1
  47. package/dist/popover.css.map +1 -1
  48. package/dist/primer.css +3 -3
  49. package/dist/primer.css.map +1 -1
  50. package/dist/primitives.css +1 -1
  51. package/dist/primitives.css.map +1 -1
  52. package/dist/product.css +1 -1
  53. package/dist/product.css.map +1 -1
  54. package/dist/progress.css.map +1 -1
  55. package/dist/select-menu.css.map +1 -1
  56. package/dist/stats/autocomplete.json +1 -1
  57. package/dist/stats/avatars.json +1 -1
  58. package/dist/stats/box.json +1 -1
  59. package/dist/stats/breadcrumb.json +1 -1
  60. package/dist/stats/color-modes.json +1 -1
  61. package/dist/stats/core.json +1 -1
  62. package/dist/stats/forms.json +1 -1
  63. package/dist/stats/labels.json +1 -1
  64. package/dist/stats/layout.json +1 -1
  65. package/dist/stats/links.json +1 -1
  66. package/dist/stats/markdown.json +1 -1
  67. package/dist/stats/navigation.json +1 -1
  68. package/dist/stats/overlay.json +1 -1
  69. package/dist/stats/popover.json +1 -1
  70. package/dist/stats/primer.json +1 -1
  71. package/dist/stats/product.json +1 -1
  72. package/dist/stats/toggle-switch.json +1 -1
  73. package/dist/stats/truncate.json +1 -1
  74. package/dist/subhead.css.map +1 -1
  75. package/dist/timeline.css.map +1 -1
  76. package/dist/toasts.css.map +1 -1
  77. package/dist/toggle-switch.css +1 -1
  78. package/dist/toggle-switch.css.map +1 -1
  79. package/dist/tooltips.css.map +1 -1
  80. package/dist/truncate.css +1 -1
  81. package/dist/truncate.css.map +1 -1
  82. package/dist/utilities.css.map +1 -1
  83. package/forms/form-control.scss +19 -0
  84. package/forms/form-group.scss +8 -0
  85. package/forms/form-select.scss +1 -0
  86. package/forms/radio-group.scss +6 -0
  87. package/header/header.scss +4 -0
  88. package/labels/issue-labels.scss +2 -0
  89. package/labels/mixins.scss +7 -0
  90. package/layout/app-frame.scss +0 -1
  91. package/layout/page-layout.scss +1 -0
  92. package/layout/stack.scss +2 -2
  93. package/markdown/blob-csv.scss +3 -0
  94. package/markdown/code.scss +2 -0
  95. package/markdown/footnotes.scss +4 -0
  96. package/markdown/headings.scss +5 -0
  97. package/markdown/images.scss +1 -1
  98. package/markdown/lists.scss +3 -0
  99. package/markdown/markdown-body.scss +4 -0
  100. package/markdown/tables.scss +3 -0
  101. package/marketing/buttons/button.scss +6 -0
  102. package/marketing/type/typography.scss +24 -0
  103. package/navigation/filter-list.scss +4 -0
  104. package/navigation/sidenav.scss +2 -0
  105. package/navigation/subnav.scss +7 -0
  106. package/package.json +4 -4
  107. package/pagination/pagination.scss +3 -0
  108. package/select-menu/select-menu.scss +23 -0
  109. package/support/mixins/misc.scss +3 -0
  110. package/support/mixins/typography.scss +21 -0
  111. package/toasts/toasts.scss +2 -0
  112. package/tooltips/tooltips.scss +1 -1
@@ -5,7 +5,9 @@
5
5
  // stylelint-disable-next-line primer/spacing
6
6
  padding: 5px;
7
7
  overflow: hidden;
8
+ // stylelint-disable-next-line primer/typography
8
9
  font-size: $font-size-small;
10
+ // stylelint-disable-next-line primer/typography
9
11
  line-height: $lh-condensed-ultra;
10
12
  text-align: left;
11
13
  white-space: nowrap;
@@ -22,6 +24,7 @@
22
24
  tr { border-top: 0; }
23
25
 
24
26
  th {
27
+ // stylelint-disable-next-line primer/typography
25
28
  font-weight: $font-weight-bold;
26
29
  background: var(--bgColor-muted, var(--color-canvas-subtle));
27
30
  border-top: 0;
@@ -10,6 +10,7 @@
10
10
  font-size: 85%;
11
11
  white-space: break-spaces; // keeps rendering spaces, but breaks them onto multiple lines
12
12
  background-color: var(--bgColor-neutral-muted, var(--color-neutral-muted));
13
+ // stylelint-disable-next-line primer/borders
13
14
  border-radius: $border-radius;
14
15
 
15
16
  br { display: none; }
@@ -60,6 +61,7 @@
60
61
  line-height: 1.45;
61
62
  color: var(--fgColor-default, var(--color-fg-default));
62
63
  background-color: var(--bgColor-muted, var(--color-canvas-subtle));
64
+ // stylelint-disable-next-line primer/borders
63
65
  border-radius: $border-radius;
64
66
  }
65
67
 
@@ -13,8 +13,10 @@
13
13
  }
14
14
 
15
15
  .footnotes {
16
+ // stylelint-disable-next-line primer/typography
16
17
  font-size: $h6-size;
17
18
  color: var(--fgColor-muted, var(--color-fg-muted));
19
+ // stylelint-disable-next-line primer/borders
18
20
  border-top: $border;
19
21
 
20
22
  ol {
@@ -41,6 +43,7 @@
41
43
  content: '';
42
44
  // stylelint-disable-next-line primer/borders
43
45
  border: 2px $border-style var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
46
+ // stylelint-disable-next-line primer/borders
44
47
  border-radius: $border-radius;
45
48
  }
46
49
 
@@ -49,6 +52,7 @@
49
52
  }
50
53
 
51
54
  .data-footnote-backref g-emoji {
55
+ // stylelint-disable-next-line primer/typography
52
56
  font-family: monospace;
53
57
  }
54
58
  }
@@ -11,7 +11,9 @@
11
11
  h6 {
12
12
  margin-top: var(--base-size-24);
13
13
  margin-bottom: var(--base-size-16);
14
+ // stylelint-disable-next-line primer/typography
14
15
  font-weight: $font-weight-bold;
16
+ // stylelint-disable-next-line primer/typography
15
17
  line-height: $lh-condensed;
16
18
 
17
19
  .octicon-link {
@@ -41,6 +43,7 @@
41
43
  padding-bottom: 0.3em;
42
44
  // stylelint-disable-next-line primer/typography
43
45
  font-size: 2em;
46
+ // stylelint-disable-next-line primer/borders
44
47
  border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
45
48
  }
46
49
 
@@ -49,6 +52,7 @@
49
52
  padding-bottom: 0.3em;
50
53
  // stylelint-disable-next-line primer/typography
51
54
  font-size: 1.5em;
55
+ // stylelint-disable-next-line primer/borders
52
56
  border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
53
57
  }
54
58
 
@@ -58,6 +62,7 @@
58
62
  }
59
63
 
60
64
  h4 {
65
+ // stylelint-disable-next-line primer/typography
61
66
  font-size: 1em;
62
67
  }
63
68
 
@@ -8,7 +8,6 @@
8
8
  // because we put padding on the images to hide header lines, and some people
9
9
  // specify the width of their images in their markdown.
10
10
  box-sizing: content-box;
11
- background-color: var(--bgColor-default, var(--color-canvas-default));
12
11
 
13
12
  &[align='right'] {
14
13
  // stylelint-disable-next-line primer/spacing
@@ -44,6 +43,7 @@
44
43
  // stylelint-disable-next-line primer/spacing
45
44
  margin: 13px 0 0;
46
45
  overflow: hidden;
46
+ // stylelint-disable-next-line primer/borders
47
47
  border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
48
48
  }
49
49
 
@@ -86,8 +86,11 @@
86
86
  dt {
87
87
  padding: 0;
88
88
  margin-top: var(--base-size-16);
89
+ // stylelint-disable-next-line primer/typography
89
90
  font-size: 1em;
91
+ // stylelint-disable-next-line primer/typography
90
92
  font-style: italic;
93
+ // stylelint-disable-next-line primer/typography
91
94
  font-weight: $font-weight-bold;
92
95
  }
93
96
 
@@ -5,8 +5,11 @@
5
5
  // container with .markdown-body on it should render generally well. It also
6
6
  // includes some GitHub Flavored Markdown specific styling (like @mentions)
7
7
  .markdown-body {
8
+ // stylelint-disable-next-line primer/typography
8
9
  font-family: $body-font;
10
+ // stylelint-disable-next-line primer/typography
9
11
  font-size: $h4-size;
12
+ // stylelint-disable-next-line primer/typography
10
13
  line-height: $body-line-height;
11
14
  word-wrap: break-word;
12
15
 
@@ -51,6 +54,7 @@
51
54
  padding-right: var(--base-size-4);
52
55
  // stylelint-disable-next-line primer/spacing
53
56
  margin-left: -20px;
57
+ // stylelint-disable-next-line primer/typography
54
58
  line-height: $lh-condensed-ultra;
55
59
 
56
60
  &:focus {
@@ -10,6 +10,7 @@
10
10
  overflow: auto;
11
11
 
12
12
  th {
13
+ // stylelint-disable-next-line primer/typography
13
14
  font-weight: $font-weight-bold;
14
15
  }
15
16
 
@@ -17,6 +18,7 @@
17
18
  td {
18
19
  // stylelint-disable-next-line primer/spacing
19
20
  padding: 6px 13px;
21
+ // stylelint-disable-next-line primer/borders
20
22
  border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
21
23
  }
22
24
 
@@ -28,6 +30,7 @@
28
30
 
29
31
  tr {
30
32
  background-color: var(--bgColor-default, var(--color-canvas-default));
33
+ // stylelint-disable-next-line primer/borders
31
34
  border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
32
35
 
33
36
  &:nth-child(2n) {
@@ -6,7 +6,9 @@
6
6
  padding: 0.9rem 1.5rem 1.1rem;
7
7
  // stylelint-disable-next-line primer/typography
8
8
  font-size: 1rem;
9
+ // stylelint-disable-next-line primer/typography
9
10
  font-weight: $font-weight-bold;
11
+ // stylelint-disable-next-line primer/typography
10
12
  line-height: 1;
11
13
  color: var(--bgColor-default, var(--color-canvas-default));
12
14
  text-align: center;
@@ -41,6 +43,7 @@
41
43
 
42
44
  &:hover {
43
45
  text-decoration: none;
46
+ // stylelint-disable-next-line primer/box-shadow
44
47
  box-shadow: var(--color-mktg-btn-shadow-hover) !important;
45
48
  }
46
49
 
@@ -86,6 +89,7 @@
86
89
  .btn-muted-mktg {
87
90
  color: var(--fgColor-default, var(--color-fg-default)) !important;
88
91
  background: none !important;
92
+ // stylelint-disable-next-line primer/box-shadow
89
93
  box-shadow: var(--color-mktg-btn-shadow-outline);
90
94
 
91
95
  &::before {
@@ -93,6 +97,7 @@
93
97
  }
94
98
 
95
99
  &:hover {
100
+ // stylelint-disable-next-line primer/box-shadow
96
101
  box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
97
102
  }
98
103
 
@@ -117,6 +122,7 @@
117
122
  }
118
123
 
119
124
  &:hover {
125
+ // stylelint-disable-next-line primer/box-shadow
120
126
  box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
121
127
  }
122
128
  }
@@ -6,7 +6,9 @@
6
6
  .h4-mktg,
7
7
  .h5-mktg,
8
8
  .h6-mktg {
9
+ // stylelint-disable-next-line primer/typography
9
10
  font-family: $font-mktg;
11
+ // stylelint-disable-next-line primer/typography
10
12
  font-feature-settings: $mktg-font-feature-settings;
11
13
  // stylelint-disable-next-line primer/typography
12
14
  font-weight: $mktg-header-weight-default !important;
@@ -19,14 +21,19 @@
19
21
  $pairing-md: map-get($mktg-header-pairings, nth($sizes, 2));
20
22
  $pairing-lg: map-get($mktg-header-pairings, nth($sizes, 3));
21
23
 
24
+ // stylelint-disable-next-line primer/typography
22
25
  font-size: map-get($pairing, 'size') !important;
26
+ // stylelint-disable-next-line primer/typography
23
27
  line-height: map-get($pairing, 'lh') !important;
24
28
 
29
+ // stylelint-disable-next-line primer/typography
25
30
  @if (map-get($pairing, 'size') >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
26
31
 
27
32
  @if (nth($sizes, 1) != nth($sizes, 2)) {
28
33
  @include breakpoint(md) {
34
+ // stylelint-disable-next-line primer/typography
29
35
  font-size: map-get($pairing-md, 'size') !important;
36
+ // stylelint-disable-next-line primer/typography
30
37
  line-height: map-get($pairing-md, 'lh') !important;
31
38
 
32
39
  @if (map-get($pairing-md, 'size') >= $mktg-header-spacing-threshold and map-get($pairing, 'size') < $mktg-header-spacing-threshold) {
@@ -34,6 +41,7 @@
34
41
  }
35
42
 
36
43
  @if (map-get($pairing-md, 'size') >= $mktg-header-weight-threshold and map-get($pairing, 'size') < $mktg-header-weight-threshold) {
44
+ // stylelint-disable-next-line primer/typography
37
45
  font-weight: $mktg-header-weight-large !important;
38
46
  }
39
47
  }
@@ -41,7 +49,9 @@
41
49
 
42
50
  @if (nth($sizes, 2) != nth($sizes, 3)) {
43
51
  @include breakpoint(lg) {
52
+ // stylelint-disable-next-line primer/typography
44
53
  font-size: map-get($pairing-lg, 'size') !important;
54
+ // stylelint-disable-next-line primer/typography
45
55
  line-height: map-get($pairing-lg, 'lh') !important;
46
56
 
47
57
  @if (map-get($pairing-lg, 'size') >= $mktg-header-spacing-threshold and map-get($pairing-md, 'size') < $mktg-header-spacing-threshold) {
@@ -49,6 +59,7 @@
49
59
  }
50
60
 
51
61
  @if (map-get($pairing-lg, 'size') >= $mktg-header-weight-threshold and map-get($pairing-md, 'size') < $mktg-header-weight-threshold) {
62
+ // stylelint-disable-next-line primer/typography
52
63
  font-weight: $mktg-header-weight-large !important;
53
64
  }
54
65
  }
@@ -63,8 +74,11 @@
63
74
  .f4-mktg,
64
75
  .f5-mktg,
65
76
  .f6-mktg {
77
+ // stylelint-disable-next-line primer/typography
66
78
  font-family: $font-mktg;
79
+ // stylelint-disable-next-line primer/typography
67
80
  font-feature-settings: $mktg-font-feature-settings;
81
+ // stylelint-disable-next-line primer/typography
68
82
  font-weight: $font-weight-normal;
69
83
  }
70
84
 
@@ -74,16 +88,21 @@
74
88
  $pairing-md: map-get($mktg-body-pairings, nth($sizes, 2));
75
89
  $pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3));
76
90
 
91
+ // stylelint-disable-next-line primer/typography
77
92
  font-size: map-get($pairing, 'size') !important;
93
+ // stylelint-disable-next-line primer/typography
78
94
  line-height: map-get($pairing, 'lh') !important;
79
95
 
80
96
  @if (map-get($pairing, 'size') >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large; }
81
97
 
98
+ // stylelint-disable-next-line primer/typography
82
99
  @if (map-get($pairing, 'size') >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold; }
83
100
 
84
101
  @if (nth($sizes, 1) != nth($sizes, 2)) {
85
102
  @include breakpoint(md) {
103
+ // stylelint-disable-next-line primer/typography
86
104
  font-size: map-get($pairing-md, 'size') !important;
105
+ // stylelint-disable-next-line primer/typography
87
106
  line-height: map-get($pairing-md, 'lh') !important;
88
107
 
89
108
  @if (map-get($pairing-md, 'size') >= $mktg-body-spacing-threshold and map-get($pairing, 'size') < $mktg-body-spacing-threshold) {
@@ -91,6 +110,7 @@
91
110
  }
92
111
 
93
112
  @if (map-get($pairing-md, 'size') >= $mktg-body-weight-threshold and map-get($pairing, 'size') < $mktg-body-weight-threshold) {
113
+ // stylelint-disable-next-line primer/typography
94
114
  font-weight: $font-weight-medium;
95
115
  }
96
116
  }
@@ -98,7 +118,9 @@
98
118
 
99
119
  @if (nth($sizes, 2) != nth($sizes, 3)) {
100
120
  @include breakpoint(lg) {
121
+ // stylelint-disable-next-line primer/typography
101
122
  font-size: map-get($pairing-lg, 'size') !important;
123
+ // stylelint-disable-next-line primer/typography
102
124
  line-height: map-get($pairing-lg, 'lh') !important;
103
125
 
104
126
  @if (map-get($pairing-lg, 'size') >= $mktg-body-spacing-threshold and map-get($pairing-md, 'size') < $mktg-body-spacing-threshold) {
@@ -106,6 +128,7 @@
106
128
  }
107
129
 
108
130
  @if (map-get($pairing-lg, 'size') >= $mktg-body-weight-threshold and map-get($pairing-md, 'size') < $mktg-body-weight-threshold) {
131
+ // stylelint-disable-next-line primer/typography
109
132
  font-weight: $font-weight-medium;
110
133
  }
111
134
  }
@@ -114,5 +137,6 @@
114
137
  }
115
138
 
116
139
  .text-medium {
140
+ // stylelint-disable-next-line primer/typography
117
141
  font-weight: $font-weight-medium !important;
118
142
  }
@@ -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,12 +30,14 @@
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;
35
37
  text-overflow: ellipsis;
36
38
  white-space: nowrap;
37
39
  cursor: pointer;
40
+ // stylelint-disable-next-line primer/borders
38
41
  border-radius: $border-radius;
39
42
 
40
43
  &:hover {
@@ -67,6 +70,7 @@
67
70
 
68
71
  .count {
69
72
  float: right;
73
+ // stylelint-disable-next-line primer/typography
70
74
  font-weight: $font-weight-bold;
71
75
  }
72
76
 
@@ -16,6 +16,7 @@
16
16
  text-align: left;
17
17
  background-color: transparent;
18
18
  border: 0;
19
+ // stylelint-disable-next-line primer/borders
19
20
  border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
20
21
 
21
22
  &:first-child {
@@ -94,6 +95,7 @@
94
95
 
95
96
  .SideNav-subItem[aria-current]:not([aria-current='false']),
96
97
  .SideNav-subItem[aria-selected='true'] {
98
+ // stylelint-disable-next-line primer/typography
97
99
  font-weight: $font-weight-semibold;
98
100
  color: var(--fgColor-default, var(--color-fg-default));
99
101
  }
@@ -12,6 +12,7 @@
12
12
  .subnav-bordered {
13
13
  // stylelint-disable-next-line primer/spacing
14
14
  padding-bottom: 20px;
15
+ // stylelint-disable-next-line primer/borders
15
16
  border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
16
17
  }
17
18
 
@@ -24,10 +25,12 @@
24
25
  float: left;
25
26
  // stylelint-disable-next-line primer/spacing
26
27
  padding: 5px var(--base-size-16);
28
+ // stylelint-disable-next-line primer/typography
27
29
  font-weight: $font-weight-semibold;
28
30
  // stylelint-disable-next-line primer/typography
29
31
  line-height: 20px;
30
32
  color: var(--fgColor-default, var(--color-fg-default));
33
+ // stylelint-disable-next-line primer/borders
31
34
  border: $border-width $border-style var(--control-borderColor-rest, var(--color-border-default));
32
35
 
33
36
  + .subnav-item {
@@ -67,12 +70,16 @@
67
70
  }
68
71
 
69
72
  &:first-child {
73
+ // stylelint-disable-next-line primer/borders
70
74
  border-top-left-radius: $border-radius;
75
+ // stylelint-disable-next-line primer/borders
71
76
  border-bottom-left-radius: $border-radius;
72
77
  }
73
78
 
74
79
  &:last-child {
80
+ // stylelint-disable-next-line primer/borders
75
81
  border-top-right-radius: $border-radius;
82
+ // stylelint-disable-next-line primer/borders
76
83
  border-bottom-right-radius: $border-radius;
77
84
  }
78
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/css",
3
- "version": "21.3.6-rc.13cf9bf9",
3
+ "version": "21.4.0-rc.370c01af",
4
4
  "description": "The CSS implementation of GitHub's Primer Design System",
5
5
  "homepage": "https://primer.style/css",
6
6
  "author": "GitHub, Inc.",
@@ -41,8 +41,8 @@
41
41
  "build:storybook": "cd docs && npm i && npm run build:storybook"
42
42
  },
43
43
  "dependencies": {
44
- "@primer/primitives": "^8.2.0",
45
- "@primer/view-components": "^0.27.0"
44
+ "@primer/primitives": "^9.0.3",
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": {
@@ -7,6 +7,7 @@
7
7
  min-width: 32px;
8
8
  // stylelint-disable-next-line primer/spacing
9
9
  padding: 5px 10px;
10
+ // stylelint-disable-next-line primer/typography
10
11
  font-style: normal;
11
12
  // stylelint-disable-next-line primer/typography
12
13
  line-height: 20px;
@@ -16,7 +17,9 @@
16
17
  vertical-align: middle;
17
18
  cursor: pointer;
18
19
  user-select: none;
20
+ // stylelint-disable-next-line primer/borders
19
21
  border: $border-width $border-style transparent;
22
+ // stylelint-disable-next-line primer/borders
20
23
  border-radius: $border-radius;
21
24
  transition: border-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
22
25
 
@@ -62,6 +62,7 @@ $SelectMenu-max-height: 480px !default;
62
62
  pointer-events: auto;
63
63
  flex-direction: column;
64
64
  background-color: var(--overlay-bgColor, var(--color-canvas-overlay));
65
+ // stylelint-disable-next-line primer/borders
65
66
  border: $border-width $border-style var(--selectMenu-borderColor, var(--color-select-menu-backdrop-border));
66
67
  // stylelint-disable-next-line primer/borders
67
68
  border-radius: $border-radius * 2;
@@ -87,8 +88,10 @@ $SelectMenu-max-height: 480px !default;
87
88
  height: auto;
88
89
  max-height: $SelectMenu-max-height;
89
90
  margin: var(--base-size-8) 0 var(--base-size-16) 0;
91
+ // stylelint-disable-next-line primer/typography
90
92
  font-size: $font-size-small;
91
93
  border-color: var(--borderColor-default, var(--color-border-default));
94
+ // stylelint-disable-next-line primer/borders
92
95
  border-radius: $border-radius;
93
96
  box-shadow: var(--shadow-floating-legacy, var(--color-overlay-shadow));
94
97
  animation-name: SelectMenu-modal-animation--sm;
@@ -104,6 +107,7 @@ $SelectMenu-max-height: 480px !default;
104
107
  padding: var(--base-size-16);
105
108
  flex: none; // fixes header from getting squeezed in Safari iOS
106
109
  align-items: center;
110
+ // stylelint-disable-next-line primer/borders
107
111
  border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
108
112
 
109
113
  @include breakpoint(sm) {
@@ -114,7 +118,9 @@ $SelectMenu-max-height: 480px !default;
114
118
 
115
119
  .SelectMenu-title {
116
120
  flex: 1;
121
+ // stylelint-disable-next-line primer/typography
117
122
  font-size: $body-font-size;
123
+ // stylelint-disable-next-line primer/typography
118
124
  font-weight: $font-weight-bold;
119
125
 
120
126
  @include breakpoint(sm) {
@@ -125,6 +131,7 @@ $SelectMenu-max-height: 480px !default;
125
131
  .SelectMenu-closeButton {
126
132
  padding: var(--base-size-16);
127
133
  margin: calc(var(--base-size-16) * -1);
134
+ // stylelint-disable-next-line primer/typography
128
135
  line-height: 1;
129
136
  color: var(--fgColor-muted, var(--color-fg-muted));
130
137
  background-color: transparent;
@@ -144,6 +151,7 @@ $SelectMenu-max-height: 480px !default;
144
151
  .SelectMenu-filter {
145
152
  padding: var(--base-size-16);
146
153
  margin: 0;
154
+ // stylelint-disable-next-line primer/borders
147
155
  border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
148
156
 
149
157
  @include breakpoint(sm) {
@@ -156,6 +164,7 @@ $SelectMenu-max-height: 480px !default;
156
164
  width: 100%;
157
165
 
158
166
  @include breakpoint(sm) {
167
+ // stylelint-disable-next-line primer/typography
159
168
  font-size: $h5-size;
160
169
  }
161
170
  }
@@ -192,6 +201,7 @@ $SelectMenu-max-height: 480px !default;
192
201
  cursor: pointer;
193
202
  background-color: var(--overlay-bgColor, var(--color-canvas-overlay));
194
203
  border: 0;
204
+ // stylelint-disable-next-line primer/borders
195
205
  border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
196
206
 
197
207
  @include breakpoint(sm) {
@@ -250,7 +260,9 @@ $SelectMenu-max-height: 480px !default;
250
260
  .SelectMenu-tab {
251
261
  flex: 1;
252
262
  padding: var(--base-size-8) var(--base-size-16);
263
+ // stylelint-disable-next-line primer/typography
253
264
  font-size: $font-size-small;
265
+ // stylelint-disable-next-line primer/typography
254
266
  font-weight: $font-weight-semibold;
255
267
  color: var(--fgColor-muted, var(--color-fg-muted));
256
268
  text-align: center;
@@ -262,9 +274,12 @@ $SelectMenu-max-height: 480px !default;
262
274
  @include breakpoint(sm) {
263
275
  flex: none;
264
276
  padding: var(--base-size-4) var(--base-size-16);
277
+ // stylelint-disable-next-line primer/borders
265
278
  border: $border-width $border-style transparent;
266
279
  border-bottom-width: 0;
280
+ // stylelint-disable-next-line primer/borders
267
281
  border-top-left-radius: $border-radius;
282
+ // stylelint-disable-next-line primer/borders
268
283
  border-top-right-radius: $border-radius;
269
284
  }
270
285
 
@@ -292,6 +307,7 @@ $SelectMenu-max-height: 480px !default;
292
307
  padding: 7px var(--base-size-16);
293
308
  text-align: center;
294
309
  background-color: var(--overlay-bgColor, var(--color-canvas-overlay));
310
+ // stylelint-disable-next-line primer/borders
295
311
  border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
296
312
  }
297
313
 
@@ -313,14 +329,18 @@ $SelectMenu-max-height: 480px !default;
313
329
  .SelectMenu-divider {
314
330
  padding: var(--base-size-4) var(--base-size-16);
315
331
  margin: 0;
332
+ // stylelint-disable-next-line primer/typography
316
333
  font-size: $font-size-small;
334
+ // stylelint-disable-next-line primer/typography
317
335
  font-weight: $font-weight-semibold;
318
336
  color: var(--fgColor-muted, var(--color-fg-muted));
319
337
  background-color: var(--bgColor-muted, var(--color-canvas-subtle));
338
+ // stylelint-disable-next-line primer/borders
320
339
  border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
321
340
 
322
341
  // Borderless
323
342
  .SelectMenu-list--borderless & {
343
+ // stylelint-disable-next-line primer/borders
324
344
  border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
325
345
 
326
346
  &:empty {
@@ -337,9 +357,11 @@ $SelectMenu-max-height: 480px !default;
337
357
  .SelectMenu-footer {
338
358
  z-index: 0; // Avoid top border from getting covered by the negative margin of the list
339
359
  padding: var(--base-size-8) var(--base-size-16);
360
+ // stylelint-disable-next-line primer/typography
340
361
  font-size: $font-size-small;
341
362
  color: var(--fgColor-muted, var(--color-fg-muted));
342
363
  text-align: center;
364
+ // stylelint-disable-next-line primer/borders
343
365
  border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
344
366
 
345
367
  @include breakpoint(sm) {
@@ -386,6 +408,7 @@ $SelectMenu-max-height: 480px !default;
386
408
  // Visible when a user clicks/taps on a list item
387
409
 
388
410
  .SelectMenu-item[aria-checked='true'] {
411
+ // stylelint-disable-next-line primer/typography
389
412
  font-weight: $font-weight-semibold;
390
413
  color: var(--fgColor-default, var(--color-fg-default));
391
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