@primer/css 0.0.0-20220120020705 → 0.0.0-2022020193741

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 (124) hide show
  1. package/CHANGELOG.md +6 -53
  2. package/actionlist/action-list-item.scss +54 -120
  3. package/actionlist/index.scss +0 -1
  4. package/autocomplete/autocomplete.scss +1 -1
  5. package/avatars/avatar-stack.scss +0 -1
  6. package/base/base.scss +0 -1
  7. package/base/index.scss +1 -0
  8. package/blankslate/index.scss +1 -0
  9. package/breadcrumb/breadcrumb.scss +1 -1
  10. package/buttons/button-group.scss +2 -3
  11. package/buttons/button.scss +35 -0
  12. package/buttons/misc.scss +7 -6
  13. package/color-modes/native.scss +0 -12
  14. package/color-modes/themes/dark.scss +1 -0
  15. package/color-modes/themes/dark_colorblind.scss +1 -0
  16. package/color-modes/themes/dark_dimmed.scss +1 -0
  17. package/color-modes/themes/dark_high_contrast.scss +1 -0
  18. package/color-modes/themes/light.scss +1 -0
  19. package/color-modes/themes/light_colorblind.scss +1 -0
  20. package/color-modes/themes/light_high_contrast.scss +1 -0
  21. package/dist/actionlist.css +1 -1
  22. package/dist/actionlist.css.map +1 -1
  23. package/dist/alerts.css.map +1 -1
  24. package/dist/autocomplete.css.map +1 -1
  25. package/dist/avatars.css +1 -1
  26. package/dist/avatars.css.map +1 -1
  27. package/dist/base.css.map +1 -1
  28. package/dist/blankslate.css.map +1 -1
  29. package/dist/box.css.map +1 -1
  30. package/dist/branch-name.css.map +1 -1
  31. package/dist/breadcrumb.css.map +1 -1
  32. package/dist/buttons.css +1 -1
  33. package/dist/buttons.css.map +1 -1
  34. package/dist/color-modes.css +1 -1
  35. package/dist/color-modes.css.map +1 -1
  36. package/dist/core.css +1 -1
  37. package/dist/core.css.map +1 -1
  38. package/dist/dropdown.css.map +1 -1
  39. package/dist/forms.css.map +1 -1
  40. package/dist/header.css.map +1 -1
  41. package/dist/labels.css +1 -1
  42. package/dist/labels.css.map +1 -1
  43. package/dist/layout.css +1 -1
  44. package/dist/layout.css.map +1 -1
  45. package/dist/links.css.map +1 -1
  46. package/dist/loaders.css.map +1 -1
  47. package/dist/markdown.css.map +1 -1
  48. package/dist/marketing-buttons.css +1 -1
  49. package/dist/marketing-buttons.css.map +1 -1
  50. package/dist/marketing-type.css.map +1 -1
  51. package/dist/marketing-utilities.css +1 -1
  52. package/dist/marketing-utilities.css.map +1 -1
  53. package/dist/marketing.css +1 -1
  54. package/dist/marketing.css.map +1 -1
  55. package/dist/meta.json +84 -95
  56. package/dist/navigation.css.map +1 -1
  57. package/dist/pagination.css +1 -1
  58. package/dist/pagination.css.map +1 -1
  59. package/dist/popover.css +1 -1
  60. package/dist/popover.css.map +1 -1
  61. package/dist/primer.css +4 -4
  62. package/dist/primer.css.map +1 -1
  63. package/dist/product.css +1 -1
  64. package/dist/product.css.map +1 -1
  65. package/dist/progress.css.map +1 -1
  66. package/dist/select-menu.css.map +1 -1
  67. package/dist/stats/actionlist.json +1 -1
  68. package/dist/stats/avatars.json +1 -1
  69. package/dist/stats/buttons.json +1 -1
  70. package/dist/stats/color-modes.json +1 -1
  71. package/dist/stats/core.json +1 -1
  72. package/dist/stats/labels.json +1 -1
  73. package/dist/stats/layout.json +1 -1
  74. package/dist/stats/marketing-buttons.json +1 -1
  75. package/dist/stats/marketing-utilities.json +1 -1
  76. package/dist/stats/marketing.json +1 -1
  77. package/dist/stats/pagination.json +1 -1
  78. package/dist/stats/popover.json +1 -1
  79. package/dist/stats/primer.json +1 -1
  80. package/dist/stats/product.json +1 -1
  81. package/dist/stats/utilities.json +1 -1
  82. package/dist/subhead.css.map +1 -1
  83. package/dist/timeline.css.map +1 -1
  84. package/dist/toasts.css.map +1 -1
  85. package/dist/tooltips.css.map +1 -1
  86. package/dist/truncate.css.map +1 -1
  87. package/dist/utilities.css +1 -1
  88. package/dist/utilities.css.map +1 -1
  89. package/forms/form-control.scss +0 -2
  90. package/labels/counters.scss +1 -1
  91. package/labels/index.scss +1 -0
  92. package/labels/labels.scss +0 -1
  93. package/layout/index.scss +1 -1
  94. package/layout/layout.scss +11 -8
  95. package/layout/mixins.scss +4 -30
  96. package/markdown/images.scss +2 -2
  97. package/marketing/buttons/button.scss +0 -8
  98. package/marketing/index.scss +0 -1
  99. package/marketing/type/typography.scss +0 -3
  100. package/marketing/utilities/animations.scss +0 -42
  101. package/navigation/filter-list.scss +2 -2
  102. package/navigation/menu.scss +2 -2
  103. package/navigation/sidenav.scss +2 -2
  104. package/navigation/subnav.scss +2 -2
  105. package/navigation/tabnav.scss +2 -2
  106. package/navigation/underline-nav.scss +2 -2
  107. package/package.json +13 -14
  108. package/pagination/pagination.scss +4 -41
  109. package/popover/popover.scss +1 -1
  110. package/select-menu/select-menu.scss +2 -2
  111. package/stylelint.config.cjs +11 -2
  112. package/support/mixins/color-modes.scss +0 -3
  113. package/support/mixins/misc.scss +16 -0
  114. package/support/mixins/typography.scss +2 -3
  115. package/support/variables/layout.scss +2 -1
  116. package/utilities/visibility-display.scss +3 -3
  117. package/actionlist/action-list-tree.scss +0 -92
  118. package/dist/marketing-links.css +0 -2
  119. package/dist/marketing-links.css.map +0 -1
  120. package/dist/marketing-links.js +0 -1
  121. package/dist/stats/marketing-links.json +0 -1
  122. package/layout/page-layout.scss +0 -380
  123. package/marketing/links/index.scss +0 -3
  124. package/marketing/links/link.scss +0 -50
package/CHANGELOG.md CHANGED
@@ -1,69 +1,22 @@
1
1
  # @primer/css
2
2
 
3
- ## 0.0.0-20220120020705
4
-
5
- ### Patch Changes
6
-
7
- - Fake entry to force publishing
8
-
9
- * [#1890](https://github.com/primer/css/pull/1890) [`0b469228`](https://github.com/primer/css/commit/0b469228c05224609f4ae370f304a0fe58760de8) Thanks [@andrialexandrou](https://github.com/andrialexandrou)! - Adds --color-accent-emphasis and --color-fg-on-emphasis rules for Windows High Contrast Mode
10
-
11
- - [#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
12
-
13
- * [#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
14
-
15
- ## 19.2.0
16
-
17
- ### Minor Changes
18
-
19
- - [#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
20
-
21
- ### Patch Changes
22
-
23
- - [#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`
24
-
25
- * [#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.
26
-
27
- - [#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
28
-
29
- * [#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
30
-
31
- ## 19.1.1
32
-
33
- ### Patch Changes
34
-
35
- - [#1827](https://github.com/primer/css/pull/1827) [`69e1fc53`](https://github.com/primer/css/commit/69e1fc539e4bb2fdf78d34a18fc591ebdfddd2f5) Thanks [@simurai](https://github.com/simurai)! - Support fractional viewport sizes for `max-width` media queries
36
-
37
- * [#1803](https://github.com/primer/css/pull/1803) [`c46fe918`](https://github.com/primer/css/commit/c46fe9186efbcf6e4a482685529bdb0bda28aa9f) Thanks [@langermank](https://github.com/langermank)! - - Adds ActionList tree-view specific CSS
38
- - Minor bug fixes for ActionList default
39
-
40
- - [#1827](https://github.com/primer/css/pull/1827) [`69e1fc53`](https://github.com/primer/css/commit/69e1fc539e4bb2fdf78d34a18fc591ebdfddd2f5) Thanks [@simurai](https://github.com/simurai)! - Support fractional viewport sizes for the `hide` utilities
41
-
42
- ## 19.1.0
3
+ ## 0.0.0-2022020193741
43
4
 
44
5
  ### Minor Changes
45
6
 
46
7
  - [#1759](https://github.com/primer/css/pull/1759) [`74724ce7`](https://github.com/primer/css/commit/74724ce7c72b1cb540a9ef3d845169f1df17b55e) Thanks [@langermank](https://github.com/langermank)! - Remove `popover` responsive hack
47
8
 
48
- * [#1807](https://github.com/primer/css/pull/1807) [`13a4654f`](https://github.com/primer/css/commit/13a4654fa0854accfaabbbd2f21d2e0a1c90442d) Thanks [@enstyled](https://github.com/enstyled)! - Marketing: Add link components
49
- Marketing: Add animated arrow utility
50
- Marketing: Document button components with arrows
51
-
52
9
  ### Patch Changes
53
10
 
54
- - [#1780](https://github.com/primer/css/pull/1780) [`8e9ba62d`](https://github.com/primer/css/commit/8e9ba62d30ed10c012b99dd998751df01ad6aa99) Thanks [@langermank](https://github.com/langermank)! - ActionList followup
55
-
56
- * [#1805](https://github.com/primer/css/pull/1805) [`99537d31`](https://github.com/primer/css/commit/99537d317f04ff5474a076ab96d3ea315b2181e2) Thanks [@tobiasahlin](https://github.com/tobiasahlin)! - Fix local dev (revert webpack 5.5.0 → 6.0.0)
57
-
58
- - [#1781](https://github.com/primer/css/pull/1781) [`4d8dcf24`](https://github.com/primer/css/commit/4d8dcf24bc9e0732a9a2f34c94f6bcad7d3382dd) Thanks [@simurai](https://github.com/simurai)! - Reformat `rgba()` colors for `.btn-mktg`
11
+ - Fake entry to force publishing
59
12
 
60
- * [#1768](https://github.com/primer/css/pull/1768) [`4abb1af9`](https://github.com/primer/css/commit/4abb1af95b9b3c8c38512fa5e1e4fae9e7d01f4f) Thanks [@tobiasahlin](https://github.com/tobiasahlin)! - Marketing: Add disabled states for buttons (and tweak hover)
13
+ * [#1780](https://github.com/primer/css/pull/1780) [`8e9ba62d`](https://github.com/primer/css/commit/8e9ba62d30ed10c012b99dd998751df01ad6aa99) Thanks [@langermank](https://github.com/langermank)! - ActionList followup
61
14
 
62
- - [#1792](https://github.com/primer/css/pull/1792) [`b1c43f1f`](https://github.com/primer/css/commit/b1c43f1f8d9b07b58b275665ca69abd5d4f7a5fc) Thanks [@simurai](https://github.com/simurai)! - Use `counter-border` for LHC
15
+ - [#1805](https://github.com/primer/css/pull/1805) [`99537d31`](https://github.com/primer/css/commit/99537d317f04ff5474a076ab96d3ea315b2181e2) Thanks [@tobiasahlin](https://github.com/tobiasahlin)! - Fix local dev (revert webpack 5.5.0 → 6.0.0)
63
16
 
64
- * [#1808](https://github.com/primer/css/pull/1808) [`ee27583f`](https://github.com/primer/css/commit/ee27583f594248bd44122ea5dc81b12382c02b09) Thanks [@manuelpuyol](https://github.com/manuelpuyol)! - Add hover and active states to btn-invisible
17
+ * [#1781](https://github.com/primer/css/pull/1781) [`4d8dcf24`](https://github.com/primer/css/commit/4d8dcf24bc9e0732a9a2f34c94f6bcad7d3382dd) Thanks [@simurai](https://github.com/simurai)! - Reformat `rgba()` colors for `.btn-mktg`
65
18
 
66
- - [#1818](https://github.com/primer/css/pull/1818) [`22c29e7a`](https://github.com/primer/css/commit/22c29e7a8b1b6a0df1dd61d400cc0dd132e0c909) Thanks [@vdepizzol](https://github.com/vdepizzol)! - [Layout component] Avoid resizing `main` while loading
19
+ - [#1808](https://github.com/primer/css/pull/1808) [`ee27583f`](https://github.com/primer/css/commit/ee27583f594248bd44122ea5dc81b12382c02b09) Thanks [@manuelpuyol](https://github.com/manuelpuyol)! - Add hover and active states to btn-invisible
67
20
 
68
21
  ## 19.0.0
69
22
 
@@ -1,5 +1,3 @@
1
- // stylelint-disable max-nesting-depth, selector-max-specificity, selector-max-compound-selectors
2
-
3
1
  @mixin focusOutline {
4
2
  position: relative;
5
3
  z-index: 1;
@@ -24,8 +22,6 @@
24
22
  list-style: none;
25
23
  background-color: transparent;
26
24
  border-radius: $border-radius;
27
- touch-action: manipulation;
28
- -webkit-tap-highlight-color: transparent;
29
25
 
30
26
  &:hover,
31
27
  &:active {
@@ -38,64 +34,40 @@
38
34
  }
39
35
 
40
36
  // only hover li without list as children
41
- &:not(.ActionList-item--hasSubItem),
42
- // target contents of first child li if sub-item (li wraps item label + nested ul)
43
- &.ActionList-item--hasSubItem > .ActionList-content {
44
- @media (hover: hover) {
45
- &:hover {
46
- cursor: pointer;
47
- background-color: var(--color-action-list-item-default-hover-bg);
48
-
49
- &:not(.ActionList-item--navActive) {
50
- // Support for "Windows high contrast mode"
51
- outline: $border-style $border-width transparent;
52
- outline-offset: -$border-width;
53
- // stylelint-disable-next-line primer/box-shadow
54
- box-shadow: inset 0 0 0 2px var(--color-action-list-item-default-active-border);
55
- }
56
- }
37
+ &:not(.ActionList-item--hasSubItem) {
38
+ &:hover {
39
+ cursor: pointer;
40
+ background-color: var(--color-action-list-item-default-hover-bg);
57
41
  }
58
42
 
59
43
  &:active {
60
44
  background: var(--color-action-list-item-default-active-bg);
61
45
 
62
- &:not(.ActionList-item--navActive) {
63
- // Support for "Windows high contrast mode" https://sarahmhigley.com/writing/whcm-quick-tips/
64
- outline: $border-style $border-width transparent;
65
- outline-offset: -$border-width;
66
- // stylelint-disable-next-line primer/box-shadow
67
- box-shadow: inset 0 0 0 2px var(--color-action-list-item-default-active-border);
68
- }
69
-
70
46
  @media screen and (prefers-reduced-motion: no-preference) {
71
47
  animation: ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1);
72
48
  }
73
49
 
50
+ // stylelint-disable primer/box-shadow
74
51
  @keyframes ActionList-item-active-bg {
52
+ // stylelint-disable-next-line max-nesting-depth
75
53
  50% {
76
- // stylelint-disable-next-line primer/box-shadow
77
- box-shadow: inset 0 2px 12px 6px rgba(var(--color-canvas-default), 0.4);
54
+ box-shadow: inset 0 0 0 rgba(#000, 0.04);
78
55
  transform: scale(1);
79
56
  }
80
57
 
58
+ // stylelint-disable-next-line max-nesting-depth
81
59
  100% {
60
+ box-shadow: inset 0 3px 9px rgba(#000, 0.04);
82
61
  transform: scale(0.97);
83
62
  }
84
63
  }
64
+ // stylelint-enable primer/box-shadow
85
65
  }
86
66
 
87
- // hide dividers
88
-
89
- @media (hover: hover) {
90
- &:hover {
91
- .ActionList-item-label::before,
92
- + .ActionList-item .ActionList-item-label::before {
93
- visibility: hidden;
94
- }
95
- }
96
- }
97
- // stylelint-disable-next-line no-duplicate-selectors
67
+ &:hover,
98
68
  &:active {
69
+ // hide dividers
70
+ // stylelint-disable-next-line selector-max-specificity
99
71
  .ActionList-item-label::before,
100
72
  + .ActionList-item .ActionList-item-label::before {
101
73
  visibility: hidden;
@@ -108,16 +80,8 @@
108
80
  &.ActionList-item--hasSubItem {
109
81
  // first child
110
82
  > .ActionList-content {
111
- z-index: 1;
112
-
113
- @media (hover: hover) {
114
- &:hover {
115
- background-color: var(--color-action-list-item-default-hover-bg);
116
- }
117
- }
118
-
119
- &:active {
120
- background-color: var(--color-action-list-item-default-active-bg);
83
+ &:hover {
84
+ background-color: var(--color-action-list-item-default-hover-bg);
121
85
  }
122
86
  }
123
87
  }
@@ -134,12 +98,7 @@
134
98
  &:not(.ActionList-item--danger) {
135
99
  background: var(--color-action-list-item-default-selected-bg);
136
100
 
137
- @media (hover: hover) {
138
- &:hover {
139
- background-color: var(--color-action-list-item-default-hover-bg);
140
- }
141
- }
142
-
101
+ // stylelint-disable-next-line selector-max-specificity
143
102
  &::before,
144
103
  + .ActionList-item::before {
145
104
  visibility: hidden;
@@ -154,41 +113,6 @@
154
113
 
155
114
  // collapsible item [aria-expanded]
156
115
 
157
- // nesting (single level)
158
- // target items inside expanded subgroups
159
- &[aria-expanded] {
160
- .ActionList--subGroup {
161
- @media screen and (prefers-reduced-motion: no-preference) {
162
- transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
163
- }
164
-
165
- .ActionList-content {
166
- padding-left: $spacer-4;
167
- }
168
- }
169
-
170
- // has 16px leading visual
171
- .ActionList-content--visual16 + .ActionList--subGroup {
172
- .ActionList-content {
173
- padding-left: $spacer-5;
174
- }
175
- }
176
-
177
- // has 20px leading visual
178
- .ActionList-content--visual20 + .ActionList--subGroup {
179
- .ActionList-content {
180
- padding-left: $spacer-2 * 4.5; // 36px
181
- }
182
- }
183
-
184
- // has 24px leading visual
185
- .ActionList-content--visual24 + .ActionList--subGroup {
186
- .ActionList-content {
187
- padding-left: $spacer-6;
188
- }
189
- }
190
- }
191
-
192
116
  &[aria-expanded='true'] {
193
117
  .ActionList-item-collapseIcon {
194
118
  transition: transform 120ms linear;
@@ -196,14 +120,11 @@
196
120
  }
197
121
 
198
122
  .ActionList--subGroup {
199
- height: auto;
200
- overflow: visible;
201
- visibility: visible;
202
- opacity: 1;
203
- transform: translateY(0);
123
+ display: block;
204
124
  }
205
125
 
206
126
  &.ActionList-item--hasActiveSubItem {
127
+ // stylelint-disable-next-line selector-max-specificity
207
128
  > .ActionList-content > .ActionList-item-label {
208
129
  font-weight: $font-weight-bold;
209
130
  }
@@ -217,11 +138,7 @@
217
138
  }
218
139
 
219
140
  .ActionList--subGroup {
220
- height: 0;
221
- overflow: hidden;
222
- visibility: hidden;
223
- opacity: 0;
224
- transform: translateY(-$spacer-3);
141
+ display: none;
225
142
  }
226
143
 
227
144
  // show active indicator on parent collapse if child is active
@@ -232,6 +149,7 @@
232
149
  font-weight: $font-weight-bold;
233
150
  }
234
151
 
152
+ // stylelint-disable-next-line selector-max-specificity
235
153
  &::before,
236
154
  + .ActionList-item::before {
237
155
  visibility: hidden;
@@ -286,7 +204,7 @@
286
204
  visibility: hidden;
287
205
  opacity: 0;
288
206
  transition:
289
- visibility 0 linear $actionList-item-checkmark-transition-timing,
207
+ visibility 0 linear $actionList-item-checkmark-transition-timing,
290
208
  opacity $actionList-item-checkmark-transition-timing;
291
209
  }
292
210
 
@@ -348,10 +266,11 @@
348
266
  color: var(--color-danger-fg);
349
267
  }
350
268
 
351
- @media (hover: hover) {
269
+ @media (hover: hover) and (pointer: fine) {
352
270
  &:hover {
353
271
  background: var(--color-action-list-item-danger-hover-bg);
354
272
 
273
+ // stylelint-disable-next-line max-nesting-depth
355
274
  .ActionList-item-label {
356
275
  color: var(--color-action-list-item-danger-hover-text);
357
276
  }
@@ -374,7 +293,7 @@
374
293
  fill: var(--color-primer-fg-disabled);
375
294
  }
376
295
 
377
- @media (hover: hover) {
296
+ @media (hover: hover) and (pointer: fine) {
378
297
  &:hover {
379
298
  cursor: not-allowed;
380
299
  background-color: transparent;
@@ -395,17 +314,15 @@
395
314
  display: grid;
396
315
  // stylelint-disable-next-line primer/spacing
397
316
  padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
398
- font-size: $body-font-size;
399
317
  font-weight: $font-weight-normal;
400
318
  color: var(--color-fg-default);
401
319
  user-select: none;
402
- touch-action: manipulation;
403
320
  border-radius: $border-radius;
404
321
  transition: $actionList-item-bg-transition;
405
322
  grid-template-rows: min-content;
406
323
  grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
407
- grid-template-columns: min-content min-content minmax(0, auto) min-content min-content;
408
- align-items: start;
324
+ grid-template-columns: min-content min-content minmax(min-content, auto) min-content min-content;
325
+ align-items: center;
409
326
 
410
327
  // column-gap persists with empty grid-areas, margin applies only when children exist
411
328
  > :not(:last-child) {
@@ -430,10 +347,6 @@
430
347
  padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
431
348
  }
432
349
 
433
- &.ActionList-content--fontSmall {
434
- font-size: $font-size-small;
435
- }
436
-
437
350
  // On pointer:coarse (mobile), all list items are large
438
351
  @media (pointer: coarse) {
439
352
  // stylelint-disable-next-line primer/spacing
@@ -527,16 +440,37 @@
527
440
  color: var(--color-fg-default);
528
441
  }
529
442
 
530
- .ActionList-item-label--truncate {
531
- overflow: hidden;
532
- text-overflow: ellipsis;
533
- white-space: nowrap;
534
- }
535
-
536
443
  // nested lists (only supports 1 level currently)
537
444
  // target ActionList-item--subItem for padding-left to maintain :active :after state
538
445
 
539
- // TODO: remove with PVC implementation
540
446
  .ActionList-item--subItem > .ActionList-content {
541
447
  font-size: $font-size-small;
542
448
  }
449
+
450
+ // no leading visual
451
+ .ActionList--subGroup {
452
+ .ActionList-item--subItem {
453
+ padding-left: $spacer-3;
454
+ }
455
+ }
456
+
457
+ // has 16px leading visual
458
+ .ActionList-content--visual16 + .ActionList--subGroup {
459
+ .ActionList-item--subItem {
460
+ padding-left: $spacer-4;
461
+ }
462
+ }
463
+
464
+ // has 20px leading visual
465
+ .ActionList-content--visual20 + .ActionList--subGroup {
466
+ .ActionList-item--subItem {
467
+ padding-left: $spacer-3 * 1.75;
468
+ }
469
+ }
470
+
471
+ // has 24px leading visual
472
+ .ActionList-content--visual24 + .ActionList--subGroup {
473
+ .ActionList-item--subItem {
474
+ padding-left: $spacer-5;
475
+ }
476
+ }
@@ -1,6 +1,5 @@
1
1
  @import '../support/index.scss';
2
2
  @import './action-list-variables.scss';
3
3
  @import './action-list.scss';
4
- @import './action-list-tree.scss';
5
4
  @import './action-list-item.scss';
6
5
  @import './action-list-item-divider.scss';
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  &.selected,
47
- &[aria-selected='true'],
47
+ &[aria-selected=true],
48
48
  &.navigation-focus {
49
49
  color: var(--color-fg-on-emphasis);
50
50
  text-decoration: none;
@@ -36,7 +36,6 @@
36
36
  border-right: $border-width $border-style var(--color-canvas-default);
37
37
  // stylelint-disable-next-line primer/borders
38
38
  border-radius: $border-radius-1;
39
- box-shadow: none;
40
39
  transition: margin 0.1s ease-in-out;
41
40
 
42
41
  &:first-child {
package/base/base.scss CHANGED
@@ -46,7 +46,6 @@ hr,
46
46
  background: transparent;
47
47
  border: 0;
48
48
  border-bottom: $border-width $border-style var(--color-border-muted);
49
-
50
49
  @include clearfix();
51
50
  }
52
51
 
package/base/index.scss CHANGED
@@ -1,4 +1,5 @@
1
1
  @import '../support/index.scss';
2
+
2
3
  @import './normalize.scss';
3
4
  @import './base.scss';
4
5
  @import './kbd.scss';
@@ -1,2 +1,3 @@
1
1
  @import '../support/index.scss';
2
+
2
3
  @import './blankslate.scss';
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .breadcrumb-item-selected,
24
- .breadcrumb-item[aria-current]:not([aria-current='false']) {
24
+ .breadcrumb-item[aria-current]:not([aria-current=false]) {
25
25
  &::after {
26
26
  content: none;
27
27
  }
@@ -6,7 +6,6 @@
6
6
  .BtnGroup {
7
7
  display: inline-block;
8
8
  vertical-align: middle;
9
-
10
9
  @include clearfix();
11
10
 
12
11
  // Proper spacing for multiple button groups (a la, gollum editor)
@@ -34,7 +33,7 @@
34
33
  }
35
34
 
36
35
  &.selected,
37
- &[aria-selected='true'],
36
+ &[aria-selected=true],
38
37
  &:focus,
39
38
  &:active,
40
39
  &:hover {
@@ -67,7 +66,7 @@
67
66
  }
68
67
 
69
68
  &.selected,
70
- &[aria-selected='true'],
69
+ &[aria-selected=true],
71
70
  &:focus,
72
71
  &:active,
73
72
  &:hover {
@@ -310,3 +310,38 @@
310
310
  width: 100%;
311
311
  text-align: center;
312
312
  }
313
+
314
+ // Icon-only buttons
315
+ // default mobile sizing
316
+ .btn--icon {
317
+ display: grid;
318
+ width: 32px;
319
+ height: 32px;
320
+ padding: 0;
321
+ place-content: center;
322
+ }
323
+
324
+ .btn--icon-sm {
325
+ width: 28px;
326
+ height: 28px;
327
+
328
+ .octicon {
329
+ width: 14px;
330
+ height: 14px;
331
+ }
332
+ }
333
+
334
+ .btn--icon-lg {
335
+ width: 40px;
336
+ height: 40px;
337
+ }
338
+
339
+ // desktop friendly sizing
340
+ @media (pointer: course) {
341
+ .btn--icon {
342
+ &::before {
343
+ @include minTouchTarget(48px, 48px);
344
+ background: deeppink !important;
345
+ }
346
+ }
347
+ }
package/buttons/misc.scss CHANGED
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  &:disabled,
24
- &[aria-disabled='true'] {
24
+ &[aria-disabled=true] {
25
25
  &,
26
26
  &:hover {
27
27
  color: var(--color-primer-fg-disabled);
@@ -50,7 +50,7 @@
50
50
  &:active,
51
51
  &:focus,
52
52
  &.selected,
53
- &[aria-selected='true'],
53
+ &[aria-selected=true],
54
54
  &.zeroclipboard-is-active {
55
55
  color: var(--color-accent-fg);
56
56
  background-color: none;
@@ -59,19 +59,20 @@
59
59
  box-shadow: var(--color-btn-focus-shadow);
60
60
  }
61
61
 
62
- &:active &.zeroclipboard-is-active {
62
+ &:active
63
+ &.zeroclipboard-is-active {
63
64
  background-color: var(--color-btn-selected-bg);
64
65
  }
65
66
 
66
67
  &:disabled,
67
68
  &.disabled,
68
- &[aria-disabled='true'] {
69
+ &[aria-disabled=true] {
69
70
  color: var(--color-primer-fg-disabled);
70
71
  background-color: transparent;
71
72
  }
72
73
  }
73
74
 
74
- // Octicon button
75
+ // Octicon button (deprecated)
75
76
  //
76
77
  // Icon-only buttons
77
78
  .btn-octicon {
@@ -92,7 +93,7 @@
92
93
  &:hover { color: var(--color-accent-fg); }
93
94
 
94
95
  &.disabled,
95
- &[aria-disabled='true'] {
96
+ &[aria-disabled=true] {
96
97
  color: var(--color-primer-fg-disabled);
97
98
  cursor: default;
98
99
 
@@ -2,21 +2,9 @@
2
2
  // Enables color modes for native elements
3
3
 
4
4
  @include color-mode(light) { color-scheme: light; }
5
-
6
5
  @include color-mode(dark) { color-scheme: dark; }
7
6
 
8
7
  [data-color-mode] {
9
8
  color: var(--color-fg-default);
10
9
  background-color: var(--color-canvas-default);
11
10
  }
12
-
13
- // Windows High Contrast mode
14
-
15
- // Improves focus state for various components when Windows High Contrast mode is enabled
16
- // stylelint-disable selector-max-type
17
- @media (forced-colors: active) {
18
- body {
19
- --color-accent-emphasis: Highlight;
20
- --color-fg-on-emphasis: LinkText;
21
- }
22
- }
@@ -1,4 +1,5 @@
1
1
  @import '../../support/index.scss';
2
+
2
3
  @import '@primer/primitives/dist/scss/colors/_dark.scss';
3
4
 
4
5
  @include color-mode-theme(dark) {
@@ -1,4 +1,5 @@
1
1
  @import '../../support/index.scss';
2
+
2
3
  @import '@primer/primitives/dist/scss/colors/_dark_colorblind.scss';
3
4
 
4
5
  @include color-mode-theme(dark_colorblind) {
@@ -1,4 +1,5 @@
1
1
  @import '../../support/index.scss';
2
+
2
3
  @import '@primer/primitives/dist/scss/colors/_dark_dimmed.scss';
3
4
 
4
5
  @include color-mode-theme(dark_dimmed) {
@@ -1,4 +1,5 @@
1
1
  @import '../../support/index.scss';
2
+
2
3
  @import '@primer/primitives/dist/scss/colors/_dark_high_contrast.scss';
3
4
 
4
5
  @include color-mode-theme(dark_high_contrast) {
@@ -1,4 +1,5 @@
1
1
  @import '../../support/index.scss';
2
+
2
3
  @import '@primer/primitives/dist/scss/colors/_light.scss';
3
4
 
4
5
  @include color-mode-theme(light, true) {
@@ -1,4 +1,5 @@
1
1
  @import '../../support/index.scss';
2
+
2
3
  @import '@primer/primitives/dist/scss/colors/_light_colorblind.scss';
3
4
 
4
5
  @include color-mode-theme(light_colorblind) {
@@ -1,4 +1,5 @@
1
1
  @import '../../support/index.scss';
2
+
2
3
  @import '@primer/primitives/dist/scss/colors/_light_high_contrast.scss';
3
4
 
4
5
  @include color-mode-theme(light_high_contrast) {