@primer/css 19.0.0-rc.e1873198 → 19.1.0-rc.06290cbb

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 (133) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/DEVELOP.md +15 -0
  3. package/actionlist/action-list-item.scss +51 -19
  4. package/actionlist/action-list.scss +5 -0
  5. package/autocomplete/autocomplete.scss +1 -1
  6. package/base/base.scss +1 -0
  7. package/base/index.scss +0 -1
  8. package/base/normalize.scss +1 -1
  9. package/blankslate/index.scss +0 -1
  10. package/box/box-overlay.scss +40 -0
  11. package/box/index.scss +1 -0
  12. package/breadcrumb/breadcrumb.scss +1 -1
  13. package/buttons/button-group.scss +3 -2
  14. package/buttons/button.scss +9 -9
  15. package/buttons/misc.scss +10 -7
  16. package/color-modes/index.scss +1 -0
  17. package/color-modes/native.scss +1 -0
  18. package/color-modes/themes/dark.scss +2 -3
  19. package/color-modes/themes/dark_colorblind.scss +2 -3
  20. package/color-modes/themes/dark_dimmed.scss +2 -3
  21. package/color-modes/themes/dark_high_contrast.scss +2 -3
  22. package/color-modes/themes/light.scss +2 -3
  23. package/color-modes/themes/light_colorblind.scss +2 -3
  24. package/color-modes/themes/light_high_contrast.scss +6 -0
  25. package/dist/actionlist.css +1 -1
  26. package/dist/actionlist.css.map +1 -1
  27. package/dist/alerts.css.map +1 -1
  28. package/dist/autocomplete.css.map +1 -1
  29. package/dist/avatars.css.map +1 -1
  30. package/dist/base.css +1 -1
  31. package/dist/base.css.map +1 -1
  32. package/dist/blankslate.css.map +1 -1
  33. package/dist/box.css +1 -1
  34. package/dist/box.css.map +1 -1
  35. package/dist/branch-name.css.map +1 -1
  36. package/dist/breadcrumb.css.map +1 -1
  37. package/dist/buttons.css +1 -1
  38. package/dist/buttons.css.map +1 -1
  39. package/dist/color-modes.css +1 -1
  40. package/dist/color-modes.css.map +1 -1
  41. package/dist/core.css +1 -1
  42. package/dist/core.css.map +1 -1
  43. package/dist/dropdown.css.map +1 -1
  44. package/dist/forms.css.map +1 -1
  45. package/dist/header.css.map +1 -1
  46. package/dist/labels.css +1 -1
  47. package/dist/labels.css.map +1 -1
  48. package/dist/layout.css +1 -1
  49. package/dist/layout.css.map +1 -1
  50. package/dist/links.css.map +1 -1
  51. package/dist/loaders.css.map +1 -1
  52. package/dist/markdown.css.map +1 -1
  53. package/dist/marketing-buttons.css +1 -1
  54. package/dist/marketing-buttons.css.map +1 -1
  55. package/dist/marketing-links.css +2 -0
  56. package/dist/marketing-links.css.map +1 -0
  57. package/dist/marketing-links.js +1 -0
  58. package/dist/marketing-type.css.map +1 -1
  59. package/dist/marketing-utilities.css +1 -1
  60. package/dist/marketing-utilities.css.map +1 -1
  61. package/dist/marketing.css +1 -1
  62. package/dist/marketing.css.map +1 -1
  63. package/dist/meta.json +102 -104
  64. package/dist/navigation.css.map +1 -1
  65. package/dist/pagination.css.map +1 -1
  66. package/dist/popover.css +1 -1
  67. package/dist/popover.css.map +1 -1
  68. package/dist/primer.css +4 -4
  69. package/dist/primer.css.map +1 -1
  70. package/dist/product.css +1 -1
  71. package/dist/product.css.map +1 -1
  72. package/dist/progress.css.map +1 -1
  73. package/dist/select-menu.css.map +1 -1
  74. package/dist/stats/actionlist.json +1 -1
  75. package/dist/stats/base.json +1 -1
  76. package/dist/stats/box.json +1 -1
  77. package/dist/stats/buttons.json +1 -1
  78. package/dist/stats/color-modes.json +1 -1
  79. package/dist/stats/core.json +1 -1
  80. package/dist/stats/labels.json +1 -1
  81. package/dist/stats/layout.json +1 -1
  82. package/dist/stats/marketing-buttons.json +1 -1
  83. package/dist/stats/marketing-links.json +1 -0
  84. package/dist/stats/marketing-utilities.json +1 -1
  85. package/dist/stats/marketing.json +1 -1
  86. package/dist/stats/popover.json +1 -1
  87. package/dist/stats/primer.json +1 -1
  88. package/dist/stats/product.json +1 -1
  89. package/dist/subhead.css.map +1 -1
  90. package/dist/timeline.css.map +1 -1
  91. package/dist/toasts.css.map +1 -1
  92. package/dist/tooltips.css.map +1 -1
  93. package/dist/truncate.css.map +1 -1
  94. package/dist/utilities.css.map +1 -1
  95. package/dist/variables.json +62 -62
  96. package/forms/form-control.scss +2 -0
  97. package/index.scss +4 -4
  98. package/labels/counters.scss +1 -1
  99. package/labels/index.scss +0 -1
  100. package/labels/labels.scss +1 -0
  101. package/layout/index.scss +0 -1
  102. package/layout/layout.scss +3 -7
  103. package/layout/mixins.scss +3 -3
  104. package/markdown/images.scss +2 -2
  105. package/marketing/buttons/button.scss +22 -8
  106. package/marketing/buttons/index.scss +2 -2
  107. package/marketing/index.scss +1 -0
  108. package/marketing/links/index.scss +3 -0
  109. package/marketing/links/link.scss +50 -0
  110. package/marketing/support/index.scss +2 -2
  111. package/marketing/support/variables.scss +4 -5
  112. package/marketing/type/index.scss +2 -2
  113. package/marketing/type/typography.scss +26 -23
  114. package/marketing/utilities/animations.scss +42 -0
  115. package/marketing/utilities/index.scss +5 -5
  116. package/marketing/utilities/layout.scss +1 -1
  117. package/navigation/filter-list.scss +2 -2
  118. package/navigation/menu.scss +2 -2
  119. package/navigation/sidenav.scss +2 -2
  120. package/navigation/subnav.scss +2 -2
  121. package/navigation/tabnav.scss +2 -2
  122. package/navigation/underline-nav.scss +2 -2
  123. package/package.json +14 -15
  124. package/pagination/pagination.scss +3 -3
  125. package/popover/popover.scss +42 -4
  126. package/select-menu/select-menu.scss +2 -2
  127. package/stylelint.config.cjs +2 -11
  128. package/support/mixins/color-modes.scss +3 -0
  129. package/support/mixins/layout.scss +5 -5
  130. package/support/mixins/misc.scss +1 -1
  131. package/support/mixins/typography.scss +3 -2
  132. package/support/variables/layout.scss +5 -5
  133. package/support/variables/typography.scss +1 -1
package/index.scss CHANGED
@@ -11,9 +11,9 @@
11
11
  // Should you need specific files, you can easily use separate `@import`s.
12
12
 
13
13
  // CSS color variables
14
- @import "./color-modes/index.scss";
14
+ @import './color-modes/index.scss';
15
15
 
16
16
  // Global requirements
17
- @import "./core/index.scss";
18
- @import "./product/index.scss";
19
- @import "./marketing/index.scss";
17
+ @import './core/index.scss';
18
+ @import './product/index.scss';
19
+ @import './marketing/index.scss';
@@ -11,7 +11,7 @@
11
11
  color: var(--color-fg-default);
12
12
  text-align: center;
13
13
  background-color: var(--color-neutral-muted);
14
- border: $border-width $border-style transparent; // Support Firefox custom colors
14
+ border: $border-width $border-style var(--color-counter-border);
15
15
  // stylelint-disable-next-line primer/borders
16
16
  border-radius: 2em;
17
17
 
package/labels/index.scss CHANGED
@@ -1,6 +1,5 @@
1
1
  @import '../support/index.scss';
2
2
  @import './mixins.scss';
3
-
4
3
  @import './issue-labels.scss';
5
4
  @import './labels.scss';
6
5
  @import './states.scss';
@@ -10,6 +10,7 @@
10
10
  .label, // TODO: Deprecte
11
11
  .Label {
12
12
  @include labels-base;
13
+
13
14
  border-color: var(--color-border-default);
14
15
 
15
16
  &:hover {
package/layout/index.scss CHANGED
@@ -1,6 +1,5 @@
1
1
  @import '../support/index.scss';
2
2
  @import './mixins.scss';
3
-
4
3
  @import './container.scss';
5
4
  @import './grid.scss';
6
5
  @import './grid-offset.scss';
@@ -2,6 +2,7 @@
2
2
 
3
3
  .Layout {
4
4
  display: grid;
5
+
5
6
  --Layout-sidebar-width: #{map-get($sidebar-width, 'sm')};
6
7
  --Layout-gutter: 16px;
7
8
 
@@ -24,8 +25,7 @@
24
25
  // Flow as column
25
26
 
26
27
  grid-auto-flow: column;
27
- grid-template-columns: auto 0 1fr; // sidebar column, separator, main column
28
- // stylelint-disable-next-line primer/no-undefined-vars
28
+ grid-template-columns: auto 0 minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))); // sidebar column, separator, main column
29
29
  grid-gap: var(--Layout-gutter);
30
30
 
31
31
  .Layout-sidebar {
@@ -101,7 +101,7 @@
101
101
  }
102
102
 
103
103
  &.Layout--sidebarPosition-end {
104
- grid-template-columns: 1fr 0 auto;
104
+ grid-template-columns: minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))) 0 auto;
105
105
 
106
106
  .Layout-main {
107
107
  grid-column: 1;
@@ -146,7 +146,6 @@
146
146
  }
147
147
 
148
148
  .Layout-sidebar {
149
- // stylelint-disable-next-line primer/no-undefined-vars
150
149
  width: var(--Layout-sidebar-width);
151
150
  }
152
151
 
@@ -169,17 +168,14 @@
169
168
  }
170
169
 
171
170
  .Layout-main-centered-md {
172
- // stylelint-disable-next-line primer/no-undefined-vars
173
171
  max-width: calc(#{$container-md} + var(--Layout-sidebar-width) + var(--Layout-gutter));
174
172
  }
175
173
 
176
174
  .Layout-main-centered-lg {
177
- // stylelint-disable-next-line primer/no-undefined-vars
178
175
  max-width: calc(#{$container-lg} + var(--Layout-sidebar-width) + var(--Layout-gutter));
179
176
  }
180
177
 
181
178
  .Layout-main-centered-xl {
182
- // stylelint-disable-next-line primer/no-undefined-vars
183
179
  max-width: calc(#{$container-xl} + var(--Layout-sidebar-width) + var(--Layout-gutter));
184
180
  }
185
181
  }
@@ -7,9 +7,9 @@
7
7
  .Layout-sidebar,
8
8
  .Layout-divider,
9
9
  .Layout-main {
10
- width: 100% !important;
11
- grid-column: 1 !important;
12
- }
10
+ width: 100% !important;
11
+ grid-column: 1 !important;
12
+ }
13
13
 
14
14
  &.Layout--sidebarPosition-flowRow-start {
15
15
  .Layout-sidebar {
@@ -10,12 +10,12 @@
10
10
  box-sizing: content-box;
11
11
  background-color: var(--color-canvas-default);
12
12
 
13
- &[align=right] {
13
+ &[align='right'] {
14
14
  // stylelint-disable-next-line primer/spacing
15
15
  padding-left: 20px;
16
16
  }
17
17
 
18
- &[align=left] {
18
+ &[align='left'] {
19
19
  // stylelint-disable-next-line primer/spacing
20
20
  padding-right: 20px;
21
21
  }
@@ -1,25 +1,24 @@
1
1
  .btn-mktg {
2
- color: var(--color-canvas-default);
3
2
  position: relative;
4
3
  z-index: 1;
5
4
  display: inline-block;
6
- appearance: none !important;
7
5
  // stylelint-disable-next-line primer/spacing
8
6
  padding: 0.9rem 1.5rem 1.1rem;
9
7
  // stylelint-disable-next-line primer/typography
10
8
  font-size: 1rem;
11
9
  font-weight: $font-weight-bold;
12
10
  line-height: 1;
11
+ color: var(--color-canvas-default);
13
12
  text-align: center;
14
13
  white-space: nowrap;
15
14
  vertical-align: middle;
16
15
  user-select: none;
16
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%), var(--color-mktg-btn-bg) !important;
17
17
  border: 0;
18
18
  // stylelint-disable-next-line primer/borders
19
19
  border-radius: 0.375rem;
20
- background: linear-gradient(180deg, rgba(255 255 255 / 0.15) 0%, rgba(255 255 255 / 0) 100%),
21
- var(--color-mktg-btn-bg) !important;
22
20
  transition: box-shadow 0.2s;
21
+ appearance: none !important;
23
22
 
24
23
  &::before {
25
24
  position: absolute;
@@ -28,24 +27,25 @@
28
27
  bottom: 0;
29
28
  left: 0;
30
29
  z-index: -1;
31
- content: "";
32
- // stylelint-disable-next-line primer/borders
30
+ content: '';
31
+ // stylelint-disable-next-line primer/colors
32
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%) !important;
33
33
  border-radius: inherit;
34
34
  opacity: 0;
35
- background: linear-gradient(180deg, rgba(255 255 255 / 0.15) 0%, rgba(255 255 255 / 0) 100%) !important;
36
35
  opacity: 0;
37
36
  transition: opacity 0.2s;
38
37
  background-blend-mode: normal;
39
38
  }
40
39
 
41
40
  &:hover {
41
+ text-decoration: none;
42
42
  box-shadow: var(--color-mktg-btn-shadow-hover) !important;
43
43
  }
44
44
 
45
45
  &:focus,
46
46
  &.focus {
47
- box-shadow: var(--color-mktg-btn-shadow-focus), var(--color-mktg-btn-shadow-hover) !important;
48
47
  outline: 0;
48
+ box-shadow: var(--color-mktg-btn-shadow-focus), var(--color-mktg-btn-shadow-hover) !important;
49
49
  }
50
50
 
51
51
  &:hover,
@@ -62,12 +62,20 @@
62
62
 
63
63
  &:active {
64
64
  outline: none;
65
+ // stylelint-disable-next-line primer/box-shadow
65
66
  box-shadow: 0 0 0 transparent;
66
67
 
67
68
  &::before {
68
69
  opacity: 0.5 !important;
69
70
  }
70
71
  }
72
+
73
+ &.disabled,
74
+ &[disabled] {
75
+ pointer-events: none;
76
+ cursor: default;
77
+ opacity: 0.5;
78
+ }
71
79
  }
72
80
 
73
81
  .btn-muted-mktg {
@@ -89,10 +97,12 @@
89
97
  }
90
98
 
91
99
  &:active {
100
+ // stylelint-disable-next-line primer/box-shadow
92
101
  box-shadow: var(--color-fg-default) 0 0 0 3px inset !important;
93
102
  }
94
103
 
95
104
  &:disabled {
105
+ // stylelint-disable-next-line primer/box-shadow
96
106
  box-shadow: var(--color-fg-subtle) 0 0 0 1px inset !important;
97
107
  }
98
108
  }
@@ -117,14 +127,18 @@
117
127
  }
118
128
 
119
129
  .btn-signup-mktg {
130
+ // stylelint-disable-next-line primer/colors
120
131
  color: #fff;
132
+ // stylelint-disable-next-line primer/colors
121
133
  background: linear-gradient(180deg, rgba(52, 183, 89, 0.15) 0%, rgba(46, 164, 79, 0) 100%), rgb(46, 164, 79) !important;
122
134
 
123
135
  &::before {
136
+ // stylelint-disable-next-line primer/colors
124
137
  background: linear-gradient(180deg, rgba(52, 183, 89, 0.15) 0%, rgba(46, 164, 79, 0) 100%) !important;
125
138
  }
126
139
 
127
140
  &:focus {
141
+ // stylelint-disable-next-line primer/box-shadow
128
142
  box-shadow: rgba(46, 164, 79, 0.45) 0 0 0 4px !important;
129
143
  }
130
144
  }
@@ -1,3 +1,3 @@
1
1
  // support files
2
- @import "../support/index.scss";
3
- @import "./button.scss";
2
+ @import '../support/index.scss';
3
+ @import './button.scss';
@@ -11,4 +11,5 @@
11
11
  // marketing specific css modules
12
12
  @import './type/index.scss';
13
13
  @import './buttons/index.scss';
14
+ @import './links/index.scss';
14
15
  @import './utilities/index.scss';
@@ -0,0 +1,3 @@
1
+ // support files
2
+ @import '../support/index.scss';
3
+ @import './link.scss';
@@ -0,0 +1,50 @@
1
+ .link-mktg {
2
+ position: relative;
3
+ display: inline-block;
4
+
5
+ &:hover {
6
+ text-decoration: none;
7
+ }
8
+
9
+ &:active {
10
+ outline: none;
11
+ }
12
+
13
+ &::after,
14
+ &.link-emphasis-mktg::before {
15
+ position: absolute;
16
+ bottom: -0.15em;
17
+ left: 0;
18
+ width: calc(100% - 1em);
19
+ height: 2px;
20
+ pointer-events: none;
21
+ content: '';
22
+ // stylelint-disable-next-line primer/colors
23
+ background-color: currentColor;
24
+ transform: scaleX(0);
25
+ transform-origin: 0 0;
26
+
27
+ @media screen and (prefers-reduced-motion: no-preference) {
28
+ transition: transform 0.3s ease;
29
+ }
30
+ }
31
+
32
+ &.link-emphasis-mktg::before {
33
+ opacity: 0.2;
34
+ transform: scaleX(1);
35
+ }
36
+
37
+ &:hover,
38
+ &:focus,
39
+ &:active {
40
+ &::after {
41
+ transform: scaleX(1);
42
+ }
43
+ }
44
+
45
+ &.arrow-target-mktg {
46
+ .arrow-symbol-mktg {
47
+ margin-left: -$em-spacer-3;
48
+ }
49
+ }
50
+ }
@@ -1,2 +1,2 @@
1
- @import "../../support/index.scss";
2
- @import "./variables.scss";
1
+ @import '../../support/index.scss';
2
+ @import './variables.scss';
@@ -1,6 +1,5 @@
1
- // stylelint-disable unit-no-unknown
2
1
  // Typography
3
- $marketing-font-path: "/fonts/" !default;
2
+ $marketing-font-path: '/fonts/' !default;
4
3
 
5
4
  $font-mktg: $body-font !default;
6
5
  $font-weight-medium: 450 !default;
@@ -122,7 +121,7 @@ $transition-time: 0.4s !default;
122
121
  $ease-mktg: cubic-bezier(0.16, 1, 0.3, 1) !default;
123
122
 
124
123
  $marketing-position-variants: (
125
- "": "",
126
- md: "-md",
127
- lg: "-lg",
124
+ '': '',
125
+ md: '-md',
126
+ lg: '-lg',
128
127
  ) !default;
@@ -1,3 +1,3 @@
1
1
  // support files
2
- @import "../support/index.scss";
3
- @import "./typography.scss";
2
+ @import '../support/index.scss';
3
+ @import './typography.scss';
@@ -19,20 +19,21 @@
19
19
  $pairing-md: map-get($mktg-header-pairings, nth($sizes, 2));
20
20
  $pairing-lg: map-get($mktg-header-pairings, nth($sizes, 3));
21
21
 
22
- font-size: map-get($pairing, "size") !important;
23
- line-height: map-get($pairing, "lh") !important;
24
- @if (map-get($pairing, "size") >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
22
+ font-size: map-get($pairing, 'size') !important;
23
+ line-height: map-get($pairing, 'lh') !important;
24
+
25
+ @if (map-get($pairing, 'size') >= $mktg-header-weight-threshold) { font-weight: $mktg-header-weight-large !important; }
25
26
 
26
27
  @if (nth($sizes, 1) != nth($sizes, 2)) {
27
28
  @include breakpoint(md) {
28
- font-size: map-get($pairing-md, "size") !important;
29
- line-height: map-get($pairing-md, "lh") !important;
29
+ font-size: map-get($pairing-md, 'size') !important;
30
+ line-height: map-get($pairing-md, 'lh') !important;
30
31
 
31
- @if (map-get($pairing-md, "size") >= $mktg-header-spacing-threshold and map-get($pairing, "size") < $mktg-header-spacing-threshold) {
32
+ @if (map-get($pairing-md, 'size') >= $mktg-header-spacing-threshold and map-get($pairing, 'size') < $mktg-header-spacing-threshold) {
32
33
  letter-spacing: $mktg-header-spacing-large !important;
33
34
  }
34
35
 
35
- @if (map-get($pairing-md, "size") >= $mktg-header-weight-threshold and map-get($pairing, "size") < $mktg-header-weight-threshold) {
36
+ @if (map-get($pairing-md, 'size') >= $mktg-header-weight-threshold and map-get($pairing, 'size') < $mktg-header-weight-threshold) {
36
37
  font-weight: $mktg-header-weight-large !important;
37
38
  }
38
39
  }
@@ -40,14 +41,14 @@
40
41
 
41
42
  @if (nth($sizes, 2) != nth($sizes, 3)) {
42
43
  @include breakpoint(lg) {
43
- font-size: map-get($pairing-lg, "size") !important;
44
- line-height: map-get($pairing-lg, "lh") !important;
44
+ font-size: map-get($pairing-lg, 'size') !important;
45
+ line-height: map-get($pairing-lg, 'lh') !important;
45
46
 
46
- @if (map-get($pairing-lg, "size") >= $mktg-header-spacing-threshold and map-get($pairing-md, "size") < $mktg-header-spacing-threshold) {
47
+ @if (map-get($pairing-lg, 'size') >= $mktg-header-spacing-threshold and map-get($pairing-md, 'size') < $mktg-header-spacing-threshold) {
47
48
  letter-spacing: $mktg-header-spacing-large !important;
48
49
  }
49
50
 
50
- @if (map-get($pairing-lg, "size") >= $mktg-header-weight-threshold and map-get($pairing-md, "size") < $mktg-header-weight-threshold) {
51
+ @if (map-get($pairing-lg, 'size') >= $mktg-header-weight-threshold and map-get($pairing-md, 'size') < $mktg-header-weight-threshold) {
51
52
  font-weight: $mktg-header-weight-large !important;
52
53
  }
53
54
  }
@@ -73,21 +74,23 @@
73
74
  $pairing-md: map-get($mktg-body-pairings, nth($sizes, 2));
74
75
  $pairing-lg: map-get($mktg-body-pairings, nth($sizes, 3));
75
76
 
76
- font-size: map-get($pairing, "size") !important;
77
- line-height: map-get($pairing, "lh") !important;
78
- @if (map-get($pairing, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
79
- @if (map-get($pairing, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold; }
77
+ font-size: map-get($pairing, 'size') !important;
78
+ line-height: map-get($pairing, 'lh') !important;
79
+
80
+ @if (map-get($pairing, 'size') >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
81
+
82
+ @if (map-get($pairing, 'size') >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold; }
80
83
 
81
84
  @if (nth($sizes, 1) != nth($sizes, 2)) {
82
85
  @include breakpoint(md) {
83
- font-size: map-get($pairing-md, "size") !important;
84
- line-height: map-get($pairing-md, "lh") !important;
86
+ font-size: map-get($pairing-md, 'size') !important;
87
+ line-height: map-get($pairing-md, 'lh') !important;
85
88
 
86
- @if (map-get($pairing-md, "size") >= $mktg-body-spacing-threshold and map-get($pairing, "size") < $mktg-body-spacing-threshold) {
89
+ @if (map-get($pairing-md, 'size') >= $mktg-body-spacing-threshold and map-get($pairing, 'size') < $mktg-body-spacing-threshold) {
87
90
  letter-spacing: $mktg-body-spacing-large !important;
88
91
  }
89
92
 
90
- @if (map-get($pairing-md, "size") >= $mktg-body-weight-threshold and map-get($pairing, "size") < $mktg-body-weight-threshold) {
93
+ @if (map-get($pairing-md, 'size') >= $mktg-body-weight-threshold and map-get($pairing, 'size') < $mktg-body-weight-threshold) {
91
94
  font-weight: $font-weight-medium;
92
95
  }
93
96
  }
@@ -95,14 +98,14 @@
95
98
 
96
99
  @if (nth($sizes, 2) != nth($sizes, 3)) {
97
100
  @include breakpoint(lg) {
98
- font-size: map-get($pairing-lg, "size") !important;
99
- line-height: map-get($pairing-lg, "lh") !important;
101
+ font-size: map-get($pairing-lg, 'size') !important;
102
+ line-height: map-get($pairing-lg, 'lh') !important;
100
103
 
101
- @if (map-get($pairing-lg, "size") >= $mktg-body-spacing-threshold and map-get($pairing-md, "size") < $mktg-body-spacing-threshold) {
104
+ @if (map-get($pairing-lg, 'size') >= $mktg-body-spacing-threshold and map-get($pairing-md, 'size') < $mktg-body-spacing-threshold) {
102
105
  letter-spacing: $mktg-body-spacing-large !important;
103
106
  }
104
107
 
105
- @if (map-get($pairing-lg, "size") >= $mktg-body-weight-threshold and map-get($pairing-md, "size") < $mktg-body-weight-threshold) {
108
+ @if (map-get($pairing-lg, 'size') >= $mktg-body-weight-threshold and map-get($pairing-md, 'size') < $mktg-body-weight-threshold) {
106
109
  font-weight: $font-weight-medium;
107
110
  }
108
111
  }
@@ -7,3 +7,45 @@
7
7
  transform: scale3d(1.025, 1.025, 1.025);
8
8
  }
9
9
  }
10
+
11
+ // Animated arrow symbol, used in marketing links, buttons, etc.
12
+ .btn-mktg,
13
+ .link-mktg,
14
+ .arrow-target-mktg {
15
+ .octicon {
16
+ width: 1em;
17
+ height: 1em;
18
+ }
19
+
20
+ .arrow-symbol-mktg {
21
+ transition: transform 0.2s;
22
+ transform: translateX(0);
23
+
24
+ // stylelint-disable-next-line selector-max-type
25
+ path:last-child {
26
+ stroke-dasharray: 10;
27
+ stroke-dashoffset: 10;
28
+ transition: stroke-dashoffset 0.2s;
29
+ }
30
+ }
31
+
32
+ @media screen and (prefers-reduced-motion: no-preference) {
33
+ &:hover,
34
+ &:focus {
35
+ .arrow-symbol-mktg {
36
+ transform: translateX(4px);
37
+
38
+ // stylelint-disable-next-line selector-max-type, selector-max-specificity, max-nesting-depth
39
+ path:last-child {
40
+ stroke-dashoffset: 20;
41
+ }
42
+ }
43
+ }
44
+
45
+ &:active {
46
+ .arrow-symbol-mktg {
47
+ transform: translateX(6px);
48
+ }
49
+ }
50
+ }
51
+ }
@@ -1,6 +1,6 @@
1
- @import "../support/index.scss";
1
+ @import '../support/index.scss';
2
2
  // utilities
3
- @import "./animations.scss";
4
- @import "./borders.scss";
5
- @import "./filters.scss";
6
- @import "./layout.scss";
3
+ @import './animations.scss';
4
+ @import './borders.scss';
5
+ @import './filters.scss';
6
+ @import './layout.scss';
@@ -6,7 +6,7 @@
6
6
  @each $breakpoint, $variant in $marketing-position-variants {
7
7
  @include breakpoint($breakpoint) {
8
8
  @each $scale, $size in $spacer-map-extended {
9
- @if ($size != 0 or $variant != "") {
9
+ @if ($size != 0 or $variant != '') {
10
10
  .top#{$variant}-#{$scale} { top: $size !important; }
11
11
  .right#{$variant}-#{$scale} { right: $size !important; }
12
12
  .bottom#{$variant}-#{$scale} { bottom: $size !important; }
@@ -41,8 +41,8 @@
41
41
  }
42
42
 
43
43
  &.selected,
44
- &[aria-selected=true],
45
- &[aria-current]:not([aria-current=false]) {
44
+ &[aria-selected='true'],
45
+ &[aria-current]:not([aria-current='false']) {
46
46
  color: var(--color-fg-on-emphasis);
47
47
  background-color: var(--color-accent-emphasis);
48
48
  }
@@ -49,8 +49,8 @@
49
49
  }
50
50
 
51
51
  &.selected,
52
- &[aria-selected=true],
53
- &[aria-current]:not([aria-current=false]) {
52
+ &[aria-selected='true'],
53
+ &[aria-current]:not([aria-current='false']) {
54
54
  cursor: default;
55
55
  background-color: var(--color-menu-bg-active);
56
56
 
@@ -59,7 +59,7 @@
59
59
  background-color: var(--color-canvas-subtle);
60
60
  }
61
61
 
62
- .SideNav-item[aria-current]:not([aria-current=false]),
62
+ .SideNav-item[aria-current]:not([aria-current='false']),
63
63
  .SideNav-item[aria-selected='true'] {
64
64
  background-color: var(--color-sidenav-selected-bg);
65
65
 
@@ -101,7 +101,7 @@
101
101
  outline: none;
102
102
  }
103
103
 
104
- .SideNav-subItem[aria-current]:not([aria-current=false]),
104
+ .SideNav-subItem[aria-current]:not([aria-current='false']),
105
105
  .SideNav-subItem[aria-selected='true'] {
106
106
  font-weight: $font-weight-semibold;
107
107
  color: var(--color-fg-default);
@@ -40,8 +40,8 @@
40
40
  }
41
41
 
42
42
  &.selected,
43
- &[aria-selected=true],
44
- &[aria-current]:not([aria-current=false]) {
43
+ &[aria-selected='true'],
44
+ &[aria-current]:not([aria-current='false']) {
45
45
  z-index: 2;
46
46
  color: var(--color-fg-on-emphasis);
47
47
  background-color: var(--color-accent-emphasis);
@@ -28,8 +28,8 @@
28
28
  transition: color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
29
29
 
30
30
  &.selected,
31
- &[aria-selected=true],
32
- &[aria-current]:not([aria-current=false]) {
31
+ &[aria-selected='true'],
32
+ &[aria-current]:not([aria-current='false']) {
33
33
  color: var(--color-fg-default);
34
34
  background-color: var(--color-canvas-default); // cover bottom border
35
35
  border-color: var(--color-border-default);
@@ -35,8 +35,8 @@
35
35
  }
36
36
 
37
37
  &.selected,
38
- &[role=tab][aria-selected=true],
39
- &[aria-current]:not([aria-current=false]) {
38
+ &[role='tab'][aria-selected='true'],
39
+ &[aria-current]:not([aria-current='false']) {
40
40
  font-weight: $font-weight-bold;
41
41
  color: var(--color-fg-default);
42
42
  border-bottom-color: var(--color-primer-border-active);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/css",
3
- "version": "19.0.0-rc.e1873198",
3
+ "version": "19.1.0-rc.06290cbb",
4
4
  "description": "The CSS implementation of GitHub's Primer Design System",
5
5
  "homepage": "https://primer.style/css",
6
6
  "author": "GitHub, Inc.",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "scripts": {
26
26
  "dist": "script/dist.js",
27
- "stylelint": "stylelint --quiet src/**/*.scss",
27
+ "stylelint": "stylelint --quiet 'src/**/*.scss'",
28
28
  "eslint": "eslint deprecations.js __tests__ script",
29
29
  "prepublishOnly": "script/prepublish",
30
30
  "start": "yarn dev",
@@ -35,37 +35,36 @@
35
35
  "storybook": "cd docs && yarn && yarn storybook"
36
36
  },
37
37
  "dependencies": {
38
- "@primer/primitives": "^7.0.1"
38
+ "@primer/primitives": "^7.2.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@changesets/changelog-github": "0.4.1",
42
- "@changesets/cli": "2.18.0",
41
+ "@changesets/changelog-github": "0.4.2",
42
+ "@changesets/cli": "2.18.1",
43
43
  "@github/prettier-config": "0.0.4",
44
44
  "@koddsson/postcss-sass": "5.0.0",
45
- "@primer/stylelint-config": "12.1.0",
45
+ "@primer/stylelint-config": "12.2.0",
46
46
  "autoprefixer": "10.4.0",
47
47
  "cssstats": "4.0.2",
48
- "eslint": "8.2.0",
49
- "eslint-plugin-github": "4.3.3",
50
- "eslint-plugin-jest": "25.2.4",
48
+ "eslint": "8.4.0",
49
+ "eslint-plugin-github": "4.3.5",
50
+ "eslint-plugin-jest": "25.3.0",
51
51
  "eslint-plugin-prettier": "4.0.0",
52
52
  "filesize": "8.0.6",
53
53
  "front-matter": "4.0.2",
54
54
  "fs-extra": "10.0.0",
55
55
  "globby": "12.0.2",
56
- "jest": "27.3.1",
56
+ "jest": "27.4.3",
57
57
  "js-yaml": "4.1.0",
58
- "postcss": "8.3.11",
58
+ "postcss": "8.4.4",
59
59
  "postcss-calc": "8.0.0",
60
60
  "postcss-import": "14.0.2",
61
61
  "postcss-load-config": "3.1.0",
62
62
  "postcss-scss": "4.0.2",
63
63
  "postcss-simple-vars": "6.0.3",
64
- "prettier": "2.4.1",
64
+ "prettier": "2.5.1",
65
65
  "semver": "7.3.5",
66
- "stylelint": "14.0.1",
67
- "stylelint-scss": "4.0.0",
68
- "table": "6.7.3"
66
+ "stylelint": "14.1.0",
67
+ "table": "6.7.5"
69
68
  },
70
69
  "jest": {
71
70
  "testEnvironment": "node",