@workday/canvas-kit-css 16.0.0-alpha.0478-next.0 → 16.0.0-alpha.0479-next.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.
- package/breadcrumbs.css +20 -4
- package/button.css +25 -21
- package/package.json +2 -2
- package/pagination.css +28 -4
package/breadcrumbs.css
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
font-family: var(--cnvs-sys-font-family-default);
|
|
4
4
|
font-size: var(--cnvs-sys-font-size-subtext-lg, var(--cnvs-sys-font-size-subtext-large, 0.875rem));
|
|
5
|
-
font-weight: var(--cnvs-sys-font-weight-
|
|
5
|
+
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
6
6
|
letter-spacing: var(--cnvs-sys-letter-spacing-subtext-lg, var(--cnvs-sys-type-letter-spacing-subtext-large));
|
|
7
7
|
line-height: var(--cnvs-sys-line-height-subtext-lg, var(--cnvs-sys-line-height-subtext-large, 1.25rem));
|
|
8
|
-
color: var(--cnvs-sys-color-fg-default);
|
|
8
|
+
color: var(--cnvs-sys-color-fg-muted-default);
|
|
9
9
|
display: inline-block;
|
|
10
10
|
white-space: nowrap;
|
|
11
11
|
text-overflow: ellipsis;
|
|
@@ -21,12 +21,24 @@
|
|
|
21
21
|
font-weight: var(--cnvs-sys-font-weight-normal);
|
|
22
22
|
letter-spacing: var(--cnvs-sys-letter-spacing-subtext-lg, var(--cnvs-sys-type-letter-spacing-subtext-large));
|
|
23
23
|
line-height: var(--cnvs-sys-line-height-subtext-lg, var(--cnvs-sys-line-height-subtext-large, 1.25rem));
|
|
24
|
+
color: var(--cnvs-sys-color-fg-default);
|
|
24
25
|
text-overflow: ellipsis;
|
|
25
26
|
overflow: hidden;
|
|
26
27
|
white-space: nowrap;
|
|
27
28
|
max-width: var(--cnvs-breadcrumbs-link-max-width);
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
.cnvs-breadcrumbs-link:hover, .cnvs-breadcrumbs-link.hover {
|
|
32
|
+
color: var(--cnvs-sys-color-fg-strong);
|
|
33
|
+
background-color: var(--cnvs-sys-color-surface-overlay-hover-default, oklch(0.3343 0.0951 253.3 / 0.05));
|
|
34
|
+
text-decoration: underline;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cnvs-breadcrumbs-link:active, .cnvs-breadcrumbs-link.active {
|
|
38
|
+
color: var(--cnvs-sys-color-fg-strong);
|
|
39
|
+
background-color: var(--cnvs-sys-color-surface-overlay-pressed-default, oklch(0.3337 0.0688 250.79 / 0.09));
|
|
40
|
+
}
|
|
41
|
+
|
|
30
42
|
|
|
31
43
|
.cnvs-breadcrumbs-item {
|
|
32
44
|
box-sizing: border-box;
|
|
@@ -34,7 +46,7 @@
|
|
|
34
46
|
display: inline-flex;
|
|
35
47
|
white-space: nowrap;
|
|
36
48
|
--cnvs-svg-size: var(--cnvs-component-system-icon-size-md, var(--cnvs-sys-space-x5, 1.25rem));
|
|
37
|
-
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-default);
|
|
49
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-muted-default);
|
|
38
50
|
}
|
|
39
51
|
|
|
40
52
|
.cnvs-breadcrumbs-item [data-part="breadcrumbs-item-chevron-right-icon"] {
|
|
@@ -80,10 +92,14 @@
|
|
|
80
92
|
box-sizing: border-box;
|
|
81
93
|
align-items: center;
|
|
82
94
|
display: flex;
|
|
83
|
-
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-default);
|
|
95
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-muted-default);
|
|
84
96
|
--cnvs-svg-size: var(--cnvs-component-system-icon-size-md, var(--cnvs-sys-space-x5, 1.25rem));
|
|
85
97
|
}
|
|
86
98
|
|
|
99
|
+
.cnvs-breadcrumbs-overflow-button [data-part="breadcrumbs-overflow-button"] {
|
|
100
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-strong);
|
|
101
|
+
}
|
|
102
|
+
|
|
87
103
|
.cnvs-breadcrumbs-overflow-button [data-part="breadcrumbs-overflow-button-chevron-right-icon"] {
|
|
88
104
|
height: var(--cnvs-sys-size-sm, var(--cnvs-sys-space-x8, 2rem));
|
|
89
105
|
width: var(--cnvs-sys-size-sm, var(--cnvs-sys-space-x8, 2rem));
|
package/button.css
CHANGED
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
box-sizing: border-box;
|
|
495
495
|
font-family: var(--cnvs-sys-font-family-default);
|
|
496
496
|
text-decoration: underline;
|
|
497
|
-
color: var(--cnvs-sys-color-fg-
|
|
497
|
+
color: var(--cnvs-sys-color-fg-link-default);
|
|
498
498
|
cursor: pointer;
|
|
499
499
|
border-radius: 0.125rem;
|
|
500
500
|
padding: 0 0.125rem;
|
|
@@ -504,8 +504,8 @@
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
.cnvs-hyperlink:hover, .cnvs-hyperlink.hover {
|
|
507
|
-
color: var(--cnvs-sys-color-fg-
|
|
508
|
-
background: var(--cnvs-sys-color-surface-
|
|
507
|
+
color: var(--cnvs-sys-color-fg-link-hover);
|
|
508
|
+
background: var(--cnvs-sys-color-surface-overlay-hover-default, oklch(0.3343 0.0951 253.3 / 0.05));
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
.cnvs-hyperlink:focus, .cnvs-hyperlink.focus, .cnvs-hyperlink:focus-visible {
|
|
@@ -513,9 +513,17 @@
|
|
|
513
513
|
outline: none;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
+
@media (forced-colors: active) {
|
|
517
|
+
.cnvs-hyperlink:focus, .cnvs-hyperlink.focus, .cnvs-hyperlink:focus-visible {
|
|
518
|
+
outline: solid 0.125rem ButtonBorder;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
}
|
|
523
|
+
|
|
516
524
|
.cnvs-hyperlink:active, .cnvs-hyperlink.active {
|
|
517
|
-
color: var(--cnvs-sys-color-fg-
|
|
518
|
-
background: var(--cnvs-sys-color-surface-
|
|
525
|
+
color: var(--cnvs-sys-color-fg-link-hover);
|
|
526
|
+
background: var(--cnvs-sys-color-surface-overlay-pressed-default, oklch(0.3337 0.0688 250.79 / 0.09));
|
|
519
527
|
}
|
|
520
528
|
|
|
521
529
|
|
|
@@ -533,33 +541,29 @@
|
|
|
533
541
|
}
|
|
534
542
|
|
|
535
543
|
.cnvs-hyperlink.variant-inverse:active, .cnvs-hyperlink.variant-inverse.active {
|
|
536
|
-
color: var(--cnvs-sys-color-fg-
|
|
544
|
+
color: var(--cnvs-sys-color-fg-link-hover);
|
|
537
545
|
background: var(--cnvs-sys-color-surface-navigation, oklch(0.9692 0.0035 248.23 / 1));
|
|
538
546
|
}
|
|
539
547
|
|
|
540
548
|
|
|
541
|
-
.cnvs-hyperlink.variant-
|
|
542
|
-
|
|
549
|
+
.cnvs-hyperlink.variant-secondary {
|
|
550
|
+
color: var(--cnvs-sys-color-fg-default);
|
|
543
551
|
}
|
|
544
552
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
color: var(--cnvs-sys-color-fg-inverse);
|
|
553
|
+
.cnvs-hyperlink.variant-secondary:hover, .cnvs-hyperlink.variant-secondary.hover {
|
|
554
|
+
color: var(--cnvs-sys-color-fg-strong);
|
|
555
|
+
background: var(--cnvs-sys-color-surface-overlay-hover-default, oklch(0.3343 0.0951 253.3 / 0.05));
|
|
549
556
|
}
|
|
550
557
|
|
|
551
|
-
.cnvs-hyperlink.variant-
|
|
552
|
-
color: var(--cnvs-sys-color-fg-
|
|
553
|
-
background:
|
|
558
|
+
.cnvs-hyperlink.variant-secondary:active, .cnvs-hyperlink.variant-secondary.active {
|
|
559
|
+
color: var(--cnvs-sys-color-fg-strong);
|
|
560
|
+
background: var(--cnvs-sys-color-surface-overlay-pressed-default, oklch(0.3337 0.0688 250.79 / 0.09));
|
|
554
561
|
}
|
|
555
562
|
|
|
556
|
-
.cnvs-hyperlink.variant-standalone-inverse:focus, .cnvs-hyperlink.variant-standalone-inverse.focus, .cnvs-hyperlink.variant-standalone-inverse:focus-visible {
|
|
557
|
-
box-shadow: 0 0 0 0.125rem var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));
|
|
558
|
-
}
|
|
559
563
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
564
|
+
|
|
565
|
+
.cnvs-hyperlink.link-type-standalone {
|
|
566
|
+
text-decoration: none;
|
|
563
567
|
}
|
|
564
568
|
|
|
565
569
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-css",
|
|
3
|
-
"version": "16.0.0-alpha.
|
|
3
|
+
"version": "16.0.0-alpha.0479-next.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The parent module that contains all Workday Canvas Kit CSS components",
|
|
6
6
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"components",
|
|
27
27
|
"workday"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "1345e0f544f5bbd437409e92c3002f77e866306c"
|
|
30
30
|
}
|
package/pagination.css
CHANGED
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
.cnvs-control-button>span {
|
|
44
|
+
--cnvs-svg-size: var(--cnvs-component-system-icon-size-xs, var(--cnvs-sys-space-x4, 1rem));
|
|
45
|
+
--cnvs-system-icon-color: var(--cnvs-sys-color-fg-strong);
|
|
46
|
+
}
|
|
47
|
+
|
|
43
48
|
.cnvs-control-button:dir(rtl) .wd-icon {
|
|
44
49
|
transform: scaleX(-1);
|
|
45
50
|
}
|
|
@@ -50,6 +55,7 @@
|
|
|
50
55
|
display: flex;
|
|
51
56
|
align-items: center;
|
|
52
57
|
gap: var(--cnvs-sys-gap-sm, var(--cnvs-sys-space-x2, 0.5rem));
|
|
58
|
+
margin-inline-start: var(--cnvs-sys-gap-xs, var(--cnvs-sys-space-x1, 0.25rem));
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
.cnvs-pagination-go-to-form :dir(rtl) {
|
|
@@ -67,6 +73,7 @@
|
|
|
67
73
|
box-sizing: border-box;
|
|
68
74
|
min-width: 3.4375rem;
|
|
69
75
|
width: 3.4375rem;
|
|
76
|
+
text-align: center;
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
|
|
@@ -79,13 +86,21 @@
|
|
|
79
86
|
--cnvs-button-label: var(--cnvs-sys-color-fg-default);
|
|
80
87
|
}
|
|
81
88
|
|
|
82
|
-
.cnvs-pagination-page-button:
|
|
83
|
-
--cnvs-button-background: var(--cnvs-sys-color-surface-
|
|
89
|
+
.cnvs-pagination-page-button:focus-visible, .cnvs-pagination-page-button.focus {
|
|
90
|
+
--cnvs-button-background: var(--cnvs-sys-color-surface-default, var(--cnvs-sys-color-bg-default, oklch(1 0 0 / 1)));
|
|
84
91
|
--cnvs-button-label: var(--cnvs-sys-color-fg-strong);
|
|
92
|
+
--cnvs-button-box-shadow-inner: var(--cnvs-sys-color-focus-inverse, var(--cnvs-sys-color-border-input-inverse, oklch(1 0 0 / 1)));
|
|
93
|
+
--cnvs-button-box-shadow-outer: var(--cnvs-sys-color-brand-focus-primary, var(--cnvs-brand-common-focus-outline, oklch(0.6023 0.2032 255.68 / 1)));
|
|
85
94
|
}
|
|
86
95
|
|
|
87
|
-
.cnvs-pagination-page-button:
|
|
88
|
-
--cnvs-button-
|
|
96
|
+
.cnvs-pagination-page-button:hover, .cnvs-pagination-page-button.hover {
|
|
97
|
+
--cnvs-button-background: var(--cnvs-sys-color-surface-overlay-hover-default, oklch(0.3343 0.0951 253.3 / 0.05));
|
|
98
|
+
--cnvs-button-label: var(--cnvs-sys-color-fg-stronger);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.cnvs-pagination-page-button:active, .cnvs-pagination-page-button.active {
|
|
102
|
+
--cnvs-button-background: var(--cnvs-sys-color-surface-overlay-pressed-default, oklch(0.3337 0.0688 250.79 / 0.09));
|
|
103
|
+
--cnvs-button-label: var(--cnvs-sys-color-fg-stronger);
|
|
89
104
|
}
|
|
90
105
|
|
|
91
106
|
.cnvs-pagination-page-button:disabled, .cnvs-pagination-page-button.disabled {
|
|
@@ -99,6 +114,15 @@
|
|
|
99
114
|
--cnvs-button-label: var(--cnvs-sys-color-fg-inverse);
|
|
100
115
|
}
|
|
101
116
|
|
|
117
|
+
@media (prefers-contrast: more) {
|
|
118
|
+
.cnvs-pagination-page-button.toggled {
|
|
119
|
+
outline: 0.125rem solid transparent;
|
|
120
|
+
outline-offset: -0.0625rem;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
|
|
102
126
|
.cnvs-pagination-page-button.toggled:hover, .cnvs-pagination-page-button.toggled.hover, .cnvs-pagination-page-button.toggled:active, .cnvs-pagination-page-button.toggled.active, .cnvs-pagination-page-button.toggled:focus-visible, .cnvs-pagination-page-button.toggled.focus {
|
|
103
127
|
--cnvs-button-background: var(--cnvs-sys-color-brand-accent-primary, var(--cnvs-brand-primary-base, oklch(0.5198 0.1782 256.11 / 1)));
|
|
104
128
|
--cnvs-button-label: var(--cnvs-sys-color-fg-inverse);
|