@primer/css 19.1.0-rc.e1e1943a → 19.1.1-rc.c6ca0fc2
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.
- package/CHANGELOG.md +28 -0
- package/actionlist/action-list-item.scss +51 -19
- package/actionlist/action-list.scss +5 -0
- package/autocomplete/autocomplete.scss +1 -1
- package/base/base.scss +1 -0
- package/base/index.scss +0 -1
- package/blankslate/index.scss +0 -1
- package/breadcrumb/breadcrumb.scss +1 -1
- package/buttons/button-group.scss +3 -2
- package/buttons/button.scss +9 -9
- package/buttons/misc.scss +10 -7
- package/color-modes/native.scss +1 -0
- package/color-modes/themes/dark.scss +0 -1
- package/color-modes/themes/dark_colorblind.scss +0 -1
- package/color-modes/themes/dark_dimmed.scss +0 -1
- package/color-modes/themes/dark_high_contrast.scss +0 -1
- package/color-modes/themes/light.scss +0 -1
- package/color-modes/themes/light_colorblind.scss +0 -1
- package/color-modes/themes/light_high_contrast.scss +0 -1
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +1 -1
- package/dist/alerts.css.map +1 -1
- package/dist/autocomplete.css.map +1 -1
- package/dist/avatars.css.map +1 -1
- package/dist/base.css.map +1 -1
- package/dist/blankslate.css.map +1 -1
- package/dist/box.css.map +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/breadcrumb.css.map +1 -1
- package/dist/buttons.css +1 -1
- package/dist/buttons.css.map +1 -1
- package/dist/color-modes.css +1 -1
- package/dist/color-modes.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/dropdown.css.map +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/header.css.map +1 -1
- package/dist/labels.css +1 -1
- package/dist/labels.css.map +1 -1
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/links.css.map +1 -1
- package/dist/loaders.css.map +1 -1
- package/dist/markdown.css.map +1 -1
- package/dist/marketing-buttons.css +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-links.css +2 -0
- package/dist/marketing-links.css.map +1 -0
- package/dist/marketing-links.js +1 -0
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-utilities.css +1 -1
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/marketing.css +1 -1
- package/dist/marketing.css.map +1 -1
- package/dist/meta.json +55 -44
- package/dist/navigation.css.map +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/popover.css +1 -1
- package/dist/popover.css.map +1 -1
- package/dist/primer.css +4 -4
- package/dist/primer.css.map +1 -1
- package/dist/product.css +1 -1
- package/dist/product.css.map +1 -1
- package/dist/progress.css.map +1 -1
- package/dist/select-menu.css.map +1 -1
- package/dist/stats/actionlist.json +1 -1
- package/dist/stats/buttons.json +1 -1
- package/dist/stats/color-modes.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/labels.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/marketing-buttons.json +1 -1
- package/dist/stats/marketing-links.json +1 -0
- package/dist/stats/marketing-utilities.json +1 -1
- package/dist/stats/marketing.json +1 -1
- package/dist/stats/popover.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/product.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/subhead.css.map +1 -1
- package/dist/timeline.css.map +1 -1
- package/dist/toasts.css.map +1 -1
- package/dist/tooltips.css.map +1 -1
- package/dist/truncate.css.map +1 -1
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/forms/form-control.scss +2 -0
- package/labels/counters.scss +1 -1
- package/labels/index.scss +0 -1
- package/labels/labels.scss +1 -0
- package/layout/index.scss +0 -1
- package/layout/layout.scss +6 -10
- package/layout/mixins.scss +3 -3
- package/markdown/images.scss +2 -2
- package/marketing/buttons/button.scss +10 -2
- package/marketing/index.scss +1 -0
- package/marketing/links/index.scss +3 -0
- package/marketing/links/link.scss +50 -0
- package/marketing/type/typography.scss +3 -0
- package/marketing/utilities/animations.scss +42 -0
- package/navigation/filter-list.scss +2 -2
- package/navigation/menu.scss +2 -2
- package/navigation/sidenav.scss +2 -2
- package/navigation/subnav.scss +2 -2
- package/navigation/tabnav.scss +2 -2
- package/navigation/underline-nav.scss +2 -2
- package/package.json +10 -11
- package/pagination/pagination.scss +3 -3
- package/popover/popover.scss +1 -1
- package/select-menu/select-menu.scss +2 -2
- package/stylelint.config.cjs +2 -11
- package/support/mixins/color-modes.scss +3 -0
- package/support/mixins/typography.scss +3 -2
- package/utilities/visibility-display.scss +3 -3
package/labels/index.scss
CHANGED
package/labels/labels.scss
CHANGED
package/layout/index.scss
CHANGED
package/layout/layout.scss
CHANGED
|
@@ -2,21 +2,22 @@
|
|
|
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
|
|
|
8
|
-
@media (max-width: calc(#{$width-sm} -
|
|
9
|
+
@media (max-width: calc(#{$width-sm} - 0.02px)) {
|
|
9
10
|
@include flow-as-row;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
&.Layout--flowRow-until-md {
|
|
13
|
-
@media (max-width: calc(#{$width-md} -
|
|
14
|
+
@media (max-width: calc(#{$width-md} - 0.02px)) {
|
|
14
15
|
@include flow-as-row;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
&.Layout--flowRow-until-lg {
|
|
19
|
-
@media (max-width: calc(#{$width-lg} -
|
|
20
|
+
@media (max-width: calc(#{$width-lg} - 0.02px)) {
|
|
20
21
|
@include flow-as-row;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -24,8 +25,7 @@
|
|
|
24
25
|
// Flow as column
|
|
25
26
|
|
|
26
27
|
grid-auto-flow: column;
|
|
27
|
-
grid-template-columns: auto 0
|
|
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:
|
|
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
|
}
|
package/layout/mixins.scss
CHANGED
package/markdown/images.scss
CHANGED
|
@@ -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
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
white-space: nowrap;
|
|
14
14
|
vertical-align: middle;
|
|
15
15
|
user-select: none;
|
|
16
|
-
background: linear-gradient(180deg, rgba(255 255 255
|
|
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;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
z-index: -1;
|
|
30
30
|
content: '';
|
|
31
31
|
// stylelint-disable-next-line primer/colors
|
|
32
|
-
background: linear-gradient(180deg, rgba(255 255 255
|
|
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
35
|
opacity: 0;
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&:hover {
|
|
41
|
+
text-decoration: none;
|
|
41
42
|
box-shadow: var(--color-mktg-btn-shadow-hover) !important;
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -68,6 +69,13 @@
|
|
|
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 {
|
package/marketing/index.scss
CHANGED
|
@@ -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
|
+
}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
font-size: map-get($pairing, 'size') !important;
|
|
23
23
|
line-height: map-get($pairing, 'lh') !important;
|
|
24
|
+
|
|
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)) {
|
|
@@ -75,7 +76,9 @@
|
|
|
75
76
|
|
|
76
77
|
font-size: map-get($pairing, 'size') !important;
|
|
77
78
|
line-height: map-get($pairing, 'lh') !important;
|
|
79
|
+
|
|
78
80
|
@if (map-get($pairing, 'size') >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
|
|
81
|
+
|
|
79
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)) {
|
|
@@ -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
|
+
}
|
|
@@ -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
|
}
|
package/navigation/menu.scss
CHANGED
package/navigation/sidenav.scss
CHANGED
|
@@ -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);
|
package/navigation/subnav.scss
CHANGED
|
@@ -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);
|
package/navigation/tabnav.scss
CHANGED
|
@@ -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.1.
|
|
3
|
+
"version": "19.1.1-rc.c6ca0fc2",
|
|
4
4
|
"description": "The CSS implementation of GitHub's Primer Design System",
|
|
5
5
|
"homepage": "https://primer.style/css",
|
|
6
6
|
"author": "GitHub, Inc.",
|
|
@@ -35,37 +35,36 @@
|
|
|
35
35
|
"storybook": "cd docs && yarn && yarn storybook"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@primer/primitives": "^7.
|
|
38
|
+
"@primer/primitives": "^7.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@changesets/changelog-github": "0.4.2",
|
|
42
|
-
"@changesets/cli": "2.18.
|
|
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.
|
|
45
|
+
"@primer/stylelint-config": "12.2.0",
|
|
46
46
|
"autoprefixer": "10.4.0",
|
|
47
47
|
"cssstats": "4.0.2",
|
|
48
|
-
"eslint": "8.
|
|
48
|
+
"eslint": "8.4.1",
|
|
49
49
|
"eslint-plugin-github": "4.3.5",
|
|
50
|
-
"eslint-plugin-jest": "25.
|
|
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.
|
|
56
|
+
"jest": "27.4.4",
|
|
57
57
|
"js-yaml": "4.1.0",
|
|
58
|
-
"postcss": "8.4.
|
|
58
|
+
"postcss": "8.4.5",
|
|
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.
|
|
64
|
+
"prettier": "2.5.1",
|
|
65
65
|
"semver": "7.3.5",
|
|
66
66
|
"stylelint": "14.1.0",
|
|
67
|
-
"
|
|
68
|
-
"table": "6.7.3"
|
|
67
|
+
"table": "6.7.5"
|
|
69
68
|
},
|
|
70
69
|
"jest": {
|
|
71
70
|
"testEnvironment": "node",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
.current,
|
|
44
44
|
.current:hover,
|
|
45
|
-
[aria-current]:not([aria-current=false]) {
|
|
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
|
border-color: transparent;
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
|
|
51
51
|
.gap,
|
|
52
52
|
.disabled,
|
|
53
|
-
[aria-disabled=true],
|
|
53
|
+
[aria-disabled='true'],
|
|
54
54
|
.gap:hover,
|
|
55
55
|
.disabled:hover,
|
|
56
|
-
[aria-disabled=true]:hover {
|
|
56
|
+
[aria-disabled='true']:hover {
|
|
57
57
|
color: var(--color-primer-fg-disabled);
|
|
58
58
|
cursor: default;
|
|
59
59
|
border-color: transparent;
|
package/popover/popover.scss
CHANGED
|
@@ -386,7 +386,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
386
386
|
//
|
|
387
387
|
// Visible when a user clicks/taps on a list item
|
|
388
388
|
|
|
389
|
-
.SelectMenu-item[aria-checked=true] {
|
|
389
|
+
.SelectMenu-item[aria-checked='true'] {
|
|
390
390
|
font-weight: $font-weight-semibold;
|
|
391
391
|
color: var(--color-fg-default);
|
|
392
392
|
|
|
@@ -402,7 +402,7 @@ $SelectMenu-max-height: 480px !default;
|
|
|
402
402
|
// Prevent list items to be selected
|
|
403
403
|
|
|
404
404
|
.SelectMenu-item:disabled,
|
|
405
|
-
.SelectMenu-item[aria-disabled=true] {
|
|
405
|
+
.SelectMenu-item[aria-disabled='true'] {
|
|
406
406
|
color: var(--color-primer-fg-disabled);
|
|
407
407
|
pointer-events: none;
|
|
408
408
|
}
|
package/stylelint.config.cjs
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: ['@primer/stylelint-config'],
|
|
3
|
-
|
|
4
|
-
customSyntax: require('postcss-scss'),
|
|
5
|
-
ignoreFiles: ['src/fonts/**/*'],
|
|
3
|
+
ignoreFiles: ['**/*.js', '**/*.cjs'],
|
|
6
4
|
rules: {
|
|
7
|
-
'
|
|
8
|
-
'primer/no-override': false,
|
|
9
|
-
'primer/colors': true,
|
|
10
|
-
'primer/borders': true,
|
|
11
|
-
'primer/spacing': true,
|
|
12
|
-
'primer/typography': true,
|
|
13
|
-
'primer/box-shadow': true,
|
|
14
|
-
'primer/no-undefined-vars': [true, {files: 'node_modules/@primer/primitives/dist/scss/colors*/*.scss'}]
|
|
5
|
+
'primer/no-override': false
|
|
15
6
|
}
|
|
16
7
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
/*! */ // This is a fix for a cssstats bug see https://github.com/cssstats/cssstats/issues/331
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
|
|
11
12
|
@else {
|
|
12
13
|
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
|
|
13
14
|
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] {
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
@content;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
40
|
+
|
|
39
41
|
@else {
|
|
40
42
|
[data-color-mode="light"][data-light-theme*="#{$mode}"],
|
|
41
43
|
[data-color-mode="dark"][data-dark-theme*="#{$mode}"] {
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
@if $type == dark {
|
|
85
87
|
$dark-colors: append($dark-colors, (--color-#{$name}, #{$color}));
|
|
86
88
|
}
|
|
89
|
+
|
|
87
90
|
@else {
|
|
88
91
|
$light-colors: append($light-colors, (--color-#{$name}, #{$color}));
|
|
89
92
|
}
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
|
|
48
48
|
// 32px on desktop
|
|
49
49
|
@include breakpoint(md) { font-size: $h1-size; }
|
|
50
|
-
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
@mixin f2-responsive {
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
|
|
63
62
|
// 20px on desktop
|
|
64
63
|
@include breakpoint(md) { font-size: $h3-size; }
|
|
65
|
-
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
// These use the mixins from above for responsive heading sizes.
|
|
@@ -70,15 +68,18 @@
|
|
|
70
68
|
// couple the responsive font-size with the font-weight.
|
|
71
69
|
@mixin h1-responsive {
|
|
72
70
|
@include f1-responsive;
|
|
71
|
+
|
|
73
72
|
font-weight: $font-weight-bold;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
@mixin h2-responsive {
|
|
77
76
|
@include f2-responsive;
|
|
77
|
+
|
|
78
78
|
font-weight: $font-weight-bold;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
@mixin h3-responsive {
|
|
82
82
|
@include f3-responsive;
|
|
83
|
+
|
|
83
84
|
font-weight: $font-weight-bold;
|
|
84
85
|
}
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
|
|
15
15
|
// Hide utilities for each breakpoint
|
|
16
16
|
// Each hide utility only applies to one breakpoint range.
|
|
17
|
-
@media (max-width: $width-sm -
|
|
17
|
+
@media (max-width: $width-sm - 0.02px) {
|
|
18
18
|
.hide-sm {
|
|
19
19
|
display: none !important;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@media (min-width: $width-sm) and (max-width: $width-md -
|
|
23
|
+
@media (min-width: $width-sm) and (max-width: $width-md - 0.02px) {
|
|
24
24
|
.hide-md {
|
|
25
25
|
display: none !important;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
@media (min-width: $width-md) and (max-width: $width-lg -
|
|
29
|
+
@media (min-width: $width-md) and (max-width: $width-lg - 0.02px) {
|
|
30
30
|
.hide-lg {
|
|
31
31
|
display: none !important;
|
|
32
32
|
}
|