@papillonbits/components 1.0.0 → 1.2.0

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 (48) hide show
  1. package/LICENSE +1 -1
  2. package/build/primer/Alert/Alert.js +3 -3
  3. package/build/primer/Alert/Alert.scss +9 -169
  4. package/build/primer/Blankslate/Blankslate.scss +1 -93
  5. package/build/primer/Box/box-overlay.scss +9 -4
  6. package/build/primer/Box/box.scss +1 -297
  7. package/build/primer/BranchName/branch-name.scss +9 -6
  8. package/build/primer/Breadcrumb/Breadcrumb.scss +1 -46
  9. package/build/primer/Button/Button.scss +77 -76
  10. package/build/primer/Button/ButtonGroup.scss +13 -1
  11. package/build/primer/Dropdown/Dropdown.scss +1 -283
  12. package/build/primer/ErrorBoundary/ErrorBoundary.js +2 -3
  13. package/build/primer/Form/FormControl.scss +1 -674
  14. package/build/primer/Form/form-control.scss +45 -40
  15. package/build/primer/Form/form-group.scss +63 -34
  16. package/build/primer/Form/form-select.scss +5 -2
  17. package/build/primer/Form/index.scss +0 -1
  18. package/build/primer/Form/input-group.scss +12 -1
  19. package/build/primer/Form/radio-group.scss +17 -9
  20. package/build/primer/Grid/FlexGrid/FlexGrid.js +3 -3
  21. package/build/primer/Grid/FlexGrid/FlexGrid.scss +3 -1
  22. package/build/primer/Label/counters.scss +1 -40
  23. package/build/primer/Label/index.scss +0 -1
  24. package/build/primer/Label/issue-labels.scss +3 -0
  25. package/build/primer/Label/labels.scss +1 -94
  26. package/build/primer/Label/mixins.scss +7 -0
  27. package/build/primer/Label/states.scss +1 -60
  28. package/build/primer/Layout/app-frame.scss +13 -13
  29. package/build/primer/Layout/grid-offset.scss +2 -2
  30. package/build/primer/Layout/grid.scss +9 -9
  31. package/build/primer/Layout/index.scss +0 -1
  32. package/build/primer/Layout/layout.scss +1 -183
  33. package/build/primer/Layout/page-layout.scss +59 -28
  34. package/build/primer/Layout/stack.scss +9 -8
  35. package/build/primer/Navigation/Menu/Menu.scss +1 -123
  36. package/build/primer/Navigation/TabNav/TabNav.scss +1 -120
  37. package/build/primer/Navigation/UnderlineNav/UnderlineNav.scss +1 -141
  38. package/build/primer/Pagination/PreviousNext/PreviousNext.scss +16 -23
  39. package/build/primer/Popover/Popover.scss +1 -227
  40. package/build/primer/Progress/Progress.scss +1 -29
  41. package/build/primer/SelectMenu/SelectMenu.scss +88 -64
  42. package/build/primer/Subhead/Subhead.scss +1 -52
  43. package/build/primer/Toast/Toast.scss +31 -27
  44. package/build/primer/index.js +4 -1
  45. package/package.json +4 -4
  46. package/build/primer/Form/form-validation.scss +0 -370
  47. package/build/primer/Label/diffstat.scss +0 -37
  48. package/build/primer/Layout/mixins.scss +0 -108
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 MTS.
3
+ Copyright (c) 2024 MTS.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -50,7 +50,7 @@ function Alert(_ref) {
50
50
  inputType: _Button2.buttonInputType.submit,
51
51
  onClick: function onClick() {
52
52
  var _consent$action;
53
- consent === null || consent === void 0 ? void 0 : (_consent$action = consent.action) === null || _consent$action === void 0 ? void 0 : _consent$action.cancel();
53
+ consent === null || consent === void 0 || (_consent$action = consent.action) === null || _consent$action === void 0 || _consent$action.cancel();
54
54
  setConsentValue('');
55
55
  }
56
56
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button2.Button, {
@@ -68,10 +68,10 @@ function Alert(_ref) {
68
68
  onClick: consent !== null && consent !== void 0 && consent.withInput ? function () {
69
69
  if (consentValue !== '') {
70
70
  var _consent$action2;
71
- consent === null || consent === void 0 ? void 0 : (_consent$action2 = consent.action) === null || _consent$action2 === void 0 ? void 0 : _consent$action2.approve(consentValue);
71
+ consent === null || consent === void 0 || (_consent$action2 = consent.action) === null || _consent$action2 === void 0 || _consent$action2.approve(consentValue);
72
72
  setConsentValue('');
73
73
  }
74
- } : consent === null || consent === void 0 ? void 0 : (_consent$action3 = consent.action) === null || _consent$action3 === void 0 ? void 0 : _consent$action3.approve
74
+ } : consent === null || consent === void 0 || (_consent$action3 = consent.action) === null || _consent$action3 === void 0 ? void 0 : _consent$action3.approve
75
75
  })]
76
76
  }), variant === _Alert.alertVariant.info && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon2.Icon, {
77
77
  className: _margin["default"]['mr-2'],
@@ -1,172 +1,12 @@
1
- @import '~@papillonbits/css/build/primer/support/variables/layout.scss';
2
- @import '~@papillonbits/css/build/primer/support/variables/misc.scss';
3
- @import '~@papillonbits/css/build/primer/support/variables/typography.scss';
1
+ /*
2
+ deprecated component
3
+ https://primer.style/deprecated-components/flash
4
4
 
5
- // stylelint-disable no-descending-specificity
6
- // stylelint-disable selector-max-type, no-duplicate-selectors
5
+ check out
6
+ https://primer.style/ui-patterns/notification-messaging
7
7
 
8
- // Default flash
9
- .flash:not(.Banner) {
10
- position: relative;
11
- // stylelint-disable-next-line primer/spacing
12
- padding: 20px $spacer-3;
13
- border-style: $border-style;
14
- border-width: $border-width;
15
- border-radius: $border-radius;
8
+ implement
9
+ https://primer.style/components/banner
10
+ */
16
11
 
17
- p:last-child {
18
- margin-bottom: 0;
19
- }
20
-
21
- .octicon {
22
- // stylelint-disable-next-line primer/spacing
23
- margin-right: 12px;
24
- }
25
- }
26
-
27
- // Contain the flash messages
28
- .flash-messages {
29
- margin-bottom: $spacer-4;
30
- }
31
-
32
- // Close button
33
- .flash-close:not(.Banner-close) {
34
- float: right;
35
- padding: $spacer-3;
36
- margin: -$spacer-3;
37
- text-align: center;
38
- cursor: pointer;
39
-
40
- // Undo `<button>` styles
41
- background: none;
42
- border: 0;
43
- appearance: none;
44
-
45
- &:hover {
46
- opacity: 0.7;
47
- }
48
-
49
- &:active {
50
- opacity: 0.5;
51
- }
52
-
53
- .octicon {
54
- margin-right: 0;
55
- }
56
- }
57
-
58
- // Action button
59
- .flash-action:not(.Banner-actions) {
60
- float: right;
61
- // stylelint-disable-next-line primer/spacing
62
- margin-top: -3px;
63
- margin-left: $spacer-4;
64
- background-clip: padding-box;
65
-
66
- &.btn .octicon {
67
- margin-right: $spacer-1;
68
- color: var(--color-fg-muted);
69
- }
70
-
71
- &.btn-primary {
72
- background-clip: border-box;
73
-
74
- .octicon {
75
- color: inherit;
76
- }
77
- }
78
- }
79
-
80
- //
81
- // Color variations
82
- //
83
-
84
- .flash:not(.Banner) {
85
- color: var(--color-fg-default);
86
- background-image: linear-gradient(var(--color-accent-subtle), var(--color-accent-subtle));
87
- border-color: var(--color-accent-muted);
88
-
89
- .octicon {
90
- color: var(--color-accent-fg);
91
- }
92
- }
93
-
94
- .flash-warn:not(.Banner) {
95
- color: var(--color-fg-default);
96
- background-image: linear-gradient(var(--color-attention-subtle), var(--color-attention-subtle));
97
- border-color: var(--color-attention-muted);
98
-
99
- .octicon {
100
- color: var(--color-attention-fg);
101
- }
102
- }
103
-
104
- .flash-error:not(.Banner) {
105
- color: var(--color-fg-default);
106
- background-image: linear-gradient(var(--color-danger-subtle), var(--color-danger-subtle));
107
- border-color: var(--color-danger-muted);
108
-
109
- .octicon {
110
- color: var(--color-danger-fg);
111
- }
112
- }
113
-
114
- .flash-success:not(.Banner) {
115
- color: var(--color-fg-default);
116
- background-image: linear-gradient(var(--color-success-subtle), var(--color-success-subtle));
117
- border-color: var(--color-success-muted);
118
-
119
- .octicon {
120
- color: var(--color-success-fg);
121
- }
122
- }
123
-
124
- //
125
- // Layout variations
126
- //
127
-
128
- // custom-style
129
- // .flash-consent {
130
- // background-color: $purple-100;
131
- // // stylelint-disable-next-line primer/borders
132
- // border-color: rgba($purple-800, 0.2);
133
-
134
- // .octicon {
135
- // // stylelint-disable-next-line primer/colors
136
- // color: rgba($purple-800, 1);
137
- // }
138
- // }
139
-
140
- .flash-full:not(.Banner) {
141
- // stylelint-disable-next-line primer/spacing
142
- margin-top: -1px;
143
- border-width: $border-width 0;
144
- border-radius: 0;
145
- }
146
-
147
- // A banner rendered at the top of the page.
148
- .flash-banner {
149
- position: fixed;
150
- top: 0;
151
- z-index: 90;
152
- width: 100%;
153
- border-top: 0;
154
- border-right: 0;
155
- border-left: 0;
156
- border-radius: 0;
157
- }
158
-
159
- // Makes sure the background is opaque to cover any content underneath
160
- .flash-full,
161
- .flash-banner {
162
- background-color: var(--color-canvas-default);
163
- }
164
-
165
- // FIXME deprecate this
166
- .warning {
167
- padding: $em-spacer-5;
168
- // stylelint-disable-next-line primer/spacing
169
- margin-bottom: 0.8em;
170
- font-weight: $font-weight-bold;
171
- background-color: var(--color-attention-subtle);
172
- }
12
+ @import '@primer/view-components/app/components/primer/beta/flash';
@@ -1,93 +1 @@
1
- @import '~@papillonbits/css/build/primer/support/variables/layout.scss';
2
- @import '~@papillonbits/css/build/primer/support/variables/typography.scss';
3
- @import '~@papillonbits/css/build/primer/support/variables/misc.scss';
4
-
5
- // stylelint-disable selector-max-type
6
- .blankslate {
7
- position: relative;
8
- padding: $spacer-5;
9
- text-align: center;
10
-
11
- p {
12
- color: var(--color-fg-muted);
13
- }
14
-
15
- code {
16
- // stylelint-disable-next-line primer/spacing
17
- padding: 2px 5px 3px;
18
- font-size: $h5-size;
19
- background: var(--color-canvas-default);
20
- border: $border-width $border-style var(--color-border-muted);
21
- border-radius: $border-radius;
22
- }
23
-
24
- img {
25
- width: 56px;
26
- height: 56px;
27
- }
28
- }
29
-
30
- .blankslate-icon {
31
- margin-right: $spacer-1;
32
- margin-bottom: $spacer-2;
33
- margin-left: $spacer-1;
34
- color: var(--color-fg-muted);
35
- }
36
-
37
- .blankslate-image {
38
- margin-bottom: $spacer-3;
39
- }
40
-
41
- .blankslate-heading {
42
- margin-bottom: $spacer-1;
43
- }
44
-
45
- .blankslate-action {
46
- margin-top: $spacer-3;
47
-
48
- &:first-of-type {
49
- margin-top: $spacer-4;
50
- }
51
-
52
- &:last-of-type {
53
- margin-bottom: $spacer-2;
54
- }
55
- }
56
-
57
- .blankslate-capped {
58
- border-radius: 0 0 $border-radius $border-radius;
59
- }
60
-
61
- .blankslate-spacious {
62
- padding: ($spacer-6 * 2) $spacer-6;
63
- }
64
-
65
- .blankslate-narrow {
66
- max-width: 485px;
67
- margin: 0 auto;
68
- }
69
-
70
- // was .large-format
71
- // QUESTION: should we deprecate this?
72
- .blankslate-large {
73
- img {
74
- width: 80px;
75
- height: 80px;
76
- }
77
-
78
- h3 {
79
- margin: $spacer-3 0;
80
- //font-size: $h3-size; // This doesn't actually make the text larger. Should this be $h2-size?
81
- font-size: $h2-size;
82
- }
83
-
84
- p {
85
- font-size: $h4-size;
86
- }
87
- }
88
-
89
- // was .clean-background
90
- // TO DO: deprecate this and use utility instead
91
- .blankslate-clean-background {
92
- border: 0;
93
- }
1
+ @import '@primer/view-components/app/components/primer/beta/blankslate';
@@ -1,19 +1,24 @@
1
+ // stylelint-disable custom-property-pattern
2
+
1
3
  .Box--overlay {
2
4
  // stylelint-disable-next-line primer/responsive-widths
3
5
  width: 448px;
4
6
  margin-right: auto;
5
7
  margin-left: auto;
6
- background-color: var(--color-canvas-default);
8
+ background-color: var(--bgColor-default, var(--color-canvas-default));
7
9
  background-clip: padding-box;
8
- border-color: var(--color-border-default);
10
+ border-color: var(--borderColor-default, var(--color-border-default));
9
11
  // stylelint-disable-next-line primer/box-shadow
10
12
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
11
13
 
12
14
  .Box-header {
13
15
  margin: 0;
14
16
  border-width: 0;
17
+ // stylelint-disable-next-line primer/borders
15
18
  border-bottom-width: $border-width;
19
+ // stylelint-disable-next-line primer/borders
16
20
  border-top-left-radius: $border-radius;
21
+ // stylelint-disable-next-line primer/borders
17
22
  border-top-right-radius: $border-radius;
18
23
  }
19
24
  }
@@ -34,9 +39,9 @@
34
39
  }
35
40
 
36
41
  .help {
37
- padding-top: $spacer-2;
42
+ padding-top: var(--base-size-8);
38
43
  margin: 0;
39
- color: var(--color-fg-muted);
44
+ color: var(--fgColor-muted, var(--color-fg-muted));
40
45
  text-align: center;
41
46
  }
42
47
  }
@@ -1,297 +1 @@
1
- @import '~@papillonbits/css/build/primer/support/variables/misc.scss';
2
- @import '~@papillonbits/css/build/primer/support/variables/typography.scss';
3
- @import '~@papillonbits/css/build/primer/support/variables/layout.scss';
4
- @import '~@papillonbits/css/build/primer/support/mixins/layout.scss';
5
-
6
- // stylelint-disable no-descending-specificity
7
- // stylelint-disable declaration-block-no-redundant-longhand-properties
8
-
9
- // Box
10
- // Intended to replace simple-box, boxed-group, and table-list
11
-
12
- .Box {
13
- background-color: var(--color-canvas-default);
14
- border-color: var(--color-border-default);
15
- border-style: $border-style;
16
- border-width: $border-width;
17
- border-radius: $border-radius;
18
- }
19
-
20
- // Box padding density options
21
- .Box--condensed {
22
- line-height: $lh-condensed;
23
-
24
- .Box-header {
25
- padding: $spacer-2 $spacer-3;
26
- }
27
-
28
- .Box-body {
29
- padding: $spacer-2 $spacer-3;
30
- }
31
-
32
- .Box-footer {
33
- padding: $spacer-2 $spacer-3;
34
- }
35
-
36
- .Box-btn-octicon {
37
- &.btn-octicon {
38
- padding: $spacer-2 $spacer-3;
39
- margin: (-$spacer-2) (-$spacer-3);
40
- line-height: $lh-condensed;
41
- }
42
- }
43
-
44
- .Box-row {
45
- padding: $spacer-2 $spacer-3;
46
- }
47
- }
48
-
49
- .Box--spacious {
50
- .Box-header {
51
- padding: $spacer-4;
52
- line-height: $lh-condensed;
53
- }
54
-
55
- .Box-title {
56
- font-size: $h3-size;
57
- }
58
-
59
- .Box-body {
60
- padding: $spacer-4;
61
- }
62
-
63
- .Box-footer {
64
- padding: $spacer-4;
65
- }
66
-
67
- .Box-btn-octicon {
68
- &.btn-octicon {
69
- padding: $spacer-4;
70
- margin: (-$spacer-4) (-$spacer-4);
71
- }
72
- }
73
-
74
- .Box-row {
75
- padding: $spacer-4;
76
- }
77
- }
78
-
79
- .Box-header {
80
- padding: $spacer-3;
81
- // stylelint-disable-next-line primer/spacing
82
- margin: (-$border-width) (-$border-width) 0;
83
- background-color: var(--color-canvas-subtle);
84
- border-color: var(--color-border-default);
85
- border-style: $border-style;
86
- border-width: $border-width;
87
- border-top-left-radius: $border-radius;
88
- border-top-right-radius: $border-radius;
89
- }
90
-
91
- .Box-title {
92
- font-size: $body-font-size;
93
- font-weight: $font-weight-bold;
94
- }
95
-
96
- .Box-body {
97
- padding: $spacer-3;
98
- border-bottom: $border-width $border-style var(--color-border-default);
99
-
100
- // Ensures bottom-border doesn't poke out when .Box-body used without box-footer
101
- &:last-of-type {
102
- // stylelint-disable-next-line primer/spacing
103
- margin-bottom: -$border-width;
104
- border-bottom-right-radius: $border-radius;
105
- border-bottom-left-radius: $border-radius;
106
- }
107
- }
108
-
109
- // Box rows
110
- .Box-row {
111
- padding: $spacer-3;
112
- // stylelint-disable-next-line primer/spacing
113
- margin-top: -1px;
114
- list-style-type: none; // To account for applying Box component to a list
115
- border-top-color: var(--color-border-muted);
116
- border-top-style: $border-style;
117
- border-top-width: $border-width;
118
-
119
- &:first-of-type {
120
- border-top-left-radius: $border-radius;
121
- border-top-right-radius: $border-radius;
122
- }
123
-
124
- &:last-of-type {
125
- border-bottom-right-radius: $border-radius;
126
- border-bottom-left-radius: $border-radius;
127
- }
128
-
129
- // Adds a blue vertical line to the left of the row
130
- // For indicating a row item is unread
131
- &.Box-row--unread,
132
- // .unread to be deprecated with .Box-row-unread
133
- &.unread {
134
- // stylelint-disable-next-line primer/box-shadow
135
- box-shadow: inset 2px 0 0 var(--color-accent-emphasis);
136
- }
137
-
138
- &.navigation-focus {
139
- // Focus styles for when drag icon
140
- .Box-row--drag-button {
141
- color: var(--color-accent-fg);
142
- cursor: grab;
143
- opacity: 100;
144
- }
145
-
146
- // Grabbing while row is dragged
147
- &.is-dragging .Box-row--drag-button {
148
- cursor: grabbing;
149
- }
150
-
151
- // Row dragging styles
152
- &.sortable-chosen {
153
- background-color: var(--color-canvas-subtle);
154
- }
155
-
156
- // Makes dragging row background gray
157
- &.sortable-ghost {
158
- background-color: var(--color-canvas-subtle);
159
-
160
- // Hides contents of row while dragging so row looks solid gray
161
- .Box-row--drag-hide {
162
- opacity: 0;
163
- }
164
- }
165
- }
166
- }
167
-
168
- .Box-row--focus-gray {
169
- &.navigation-focus {
170
- background-color: var(--color-canvas-subtle);
171
- }
172
- }
173
-
174
- .Box-row--focus-blue {
175
- &.navigation-focus {
176
- background-color: var(--color-accent-subtle);
177
- }
178
- }
179
-
180
- .Box-row--hover-gray {
181
- &:hover {
182
- background-color: var(--color-canvas-subtle);
183
- }
184
- }
185
-
186
- .Box-row--hover-blue {
187
- &:hover {
188
- background-color: var(--color-accent-subtle);
189
- }
190
- }
191
-
192
- // Optional link style
193
- // Makes links on mobile blue since they don't have hover state,
194
- // and links are dark-gray with blue hover on desktop.
195
- .Box-row-link {
196
- @include breakpoint(md) {
197
- color: var(--color-fg-default);
198
- text-decoration: none;
199
-
200
- &:hover {
201
- color: var(--color-accent-fg);
202
- text-decoration: none;
203
- }
204
- }
205
- }
206
-
207
- // Optional drag icon styles for reordering items
208
- // Focus styles included in .Box-row above
209
- .Box-row--drag-button {
210
- opacity: 0;
211
- }
212
-
213
- .Box-footer {
214
- padding: $spacer-3;
215
- // stylelint-disable-next-line primer/spacing
216
- margin-top: -1px; // prevents double border when used with .Box-body
217
- border-top-color: var(--color-border-default);
218
- border-top-style: $border-style;
219
- border-top-width: $border-width;
220
- border-radius: 0 0 $border-radius $border-radius;
221
- }
222
-
223
- // Option for a box with scrolling content
224
- .Box--scrollable {
225
- max-height: 324px;
226
- overflow: scroll;
227
- }
228
-
229
- // Box themes
230
-
231
- .Box--blue {
232
- border-color: var(--color-accent-muted);
233
-
234
- .Box-header {
235
- background-color: var(--color-accent-subtle);
236
- border-color: var(--color-accent-muted);
237
- }
238
-
239
- .Box-body {
240
- border-color: var(--color-accent-muted);
241
- }
242
-
243
- .Box-row {
244
- border-color: var(--color-accent-muted);
245
- }
246
-
247
- .Box-footer {
248
- border-color: var(--color-accent-muted);
249
- }
250
- }
251
-
252
- // Applies and red border to the outside of the box,
253
- // but not to the border separating rows.
254
- .Box--danger {
255
- border-color: var(--color-danger-emphasis);
256
-
257
- .Box-row {
258
- &:first-of-type {
259
- border-color: var(--color-danger-emphasis);
260
- }
261
- }
262
-
263
- .Box-body {
264
- &:last-of-type {
265
- border-color: var(--color-danger-emphasis);
266
- }
267
- }
268
- }
269
-
270
- .Box-header--blue {
271
- background-color: var(--color-accent-subtle);
272
- border-color: var(--color-accent-muted);
273
- }
274
-
275
- // Box row highlight themes
276
-
277
- .Box-row--yellow {
278
- background-color: var(--color-attention-subtle);
279
- }
280
-
281
- .Box-row--blue {
282
- background-color: var(--color-accent-subtle);
283
- }
284
-
285
- .Box-row--gray {
286
- background-color: var(--color-canvas-subtle);
287
- }
288
-
289
- //Box with btn-octicon
290
- .Box-btn-octicon {
291
- // Increase specificity when btn-octicon is used because comes after .Box in the cascade
292
- &.btn-octicon {
293
- padding: $spacer-3 $spacer-3;
294
- margin: (-$spacer-3) (-$spacer-3);
295
- line-height: $lh-default; // override btn-octicon line-height
296
- }
297
- }
1
+ @import '@primer/view-components/app/components/primer/beta/border_box';
@@ -1,6 +1,7 @@
1
1
  @import '~@papillonbits/css/build/primer/support/variables/typography.scss';
2
2
  @import '~@papillonbits/css/build/primer/support/variables/misc.scss';
3
3
 
4
+ // stylelint-disable custom-property-pattern
4
5
  // stylelint-disable selector-max-type, selector-no-qualifying-type
5
6
 
6
7
  // A nice way to display branch names inside the UI. Can be a link or not.
@@ -9,26 +10,28 @@
9
10
  display: inline-block;
10
11
  // stylelint-disable-next-line primer/spacing
11
12
  padding: 2px 6px;
13
+ // stylelint-disable-next-line primer/typography
12
14
  font: 12px $mono-font;
13
- color: var(--color-fg-muted);
15
+ color: var(--fgColor-muted, var(--color-fg-muted));
14
16
  word-break: break-all;
15
- background-color: var(--color-accent-subtle);
17
+ background-color: var(--bgColor-accent-muted, var(--color-accent-subtle));
18
+ // stylelint-disable-next-line primer/borders
16
19
  border-radius: $border-radius;
17
20
 
18
21
  .octicon {
19
22
  // stylelint-disable-next-line primer/spacing
20
23
  margin: 1px -2px 0 0;
21
- color: var(--color-fg-muted);
24
+ color: var(--fgColor-muted, var(--color-fg-muted));
22
25
  }
23
26
  }
24
27
 
25
28
  // When a branch name is a link
26
29
 
27
30
  a.branch-name {
28
- color: var(--color-accent-fg);
29
- background-color: var(--color-accent-subtle);
31
+ color: var(--fgColor-accent, var(--color-accent-fg));
32
+ background-color: var(--bgColor-accent-muted, var(--color-accent-subtle));
30
33
 
31
34
  .octicon {
32
- color: var(--color-accent-fg);
35
+ color: var(--fgColor-accent, var(--color-accent-fg));
33
36
  }
34
37
  }