@salesforcedevs/docs-components 1.34.3-style-fix-alpha → 1.34.3-style-fix-alpha2
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/package.json
CHANGED
|
@@ -20,9 +20,9 @@ const TOPIC_TYPE_SPEC = "spec";
|
|
|
20
20
|
* Translates per-topic `topicType` into the generic `showForwardArrow` flag
|
|
21
21
|
* that `dx-tree-tile` reads (spec topics get the forward arrow icon for Redoc).
|
|
22
22
|
*
|
|
23
|
-
* Content-less parents are
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* Content-less parents are flagged with redirectToChild and left without a
|
|
24
|
+
* link. The tree selects the first markdown descendant. Copying that child's
|
|
25
|
+
* href onto the parent makes the parent win selection.
|
|
26
26
|
*/
|
|
27
27
|
function decorateTopicsWithForwardArrow(
|
|
28
28
|
topics:
|
|
@@ -44,6 +44,12 @@ function decorateTopicsWithForwardArrow(
|
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
// Flag a parent with no page of its own. Leave its link empty so the
|
|
48
|
+
// child's URL stays indexed to the child.
|
|
49
|
+
if (!!decorated.children?.length && !decorated.link?.href) {
|
|
50
|
+
decorated.redirectToChild = true;
|
|
51
|
+
}
|
|
52
|
+
|
|
47
53
|
return decorated;
|
|
48
54
|
});
|
|
49
55
|
}
|
|
@@ -75,8 +75,9 @@ dx-button::part(content) {
|
|
|
75
75
|
overflow: hidden;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
/*
|
|
79
|
-
|
|
78
|
+
/* Border width stays 1px in every state. Hover, open, and focus paint the
|
|
79
|
+
2px blue stroke with an inset shadow so the box does not grow.
|
|
80
|
+
Tertiary's hover border is overridden. */
|
|
80
81
|
.version-picker-button::part(container) {
|
|
81
82
|
box-sizing: border-box;
|
|
82
83
|
background: white;
|
|
@@ -88,6 +89,8 @@ dx-button::part(content) {
|
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
/* Hover only (not open): 2px #032D60 on #EEF4FF, no ring.
|
|
92
|
+
Border color matches the fill so the 1px border does not add a third
|
|
93
|
+
pixel around the inset stroke.
|
|
91
94
|
:focus-visible is included so click-open + Escape (which upgrades the
|
|
92
95
|
trigger to keyboard focus) still looks like hover while the pointer is on
|
|
93
96
|
the picker. */
|
|
@@ -96,12 +99,12 @@ dx-button::part(content) {
|
|
|
96
99
|
container
|
|
97
100
|
):focus-visible {
|
|
98
101
|
background: var(--dx-g-blue-vibrant-95);
|
|
99
|
-
border:
|
|
100
|
-
box-shadow:
|
|
102
|
+
border: 1px solid var(--dx-g-blue-vibrant-95);
|
|
103
|
+
box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-20);
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
/* Halo lives on the dx-button host so inner tertiary styles / overflow
|
|
104
|
-
cannot flatten it. Fill and
|
|
107
|
+
cannot flatten it. Fill and the inset stroke stay on the part. */
|
|
105
108
|
.version-picker-button[aria-expanded="true"] {
|
|
106
109
|
border-radius: var(--dx-g-spacing-xs);
|
|
107
110
|
box-shadow: var(--dx-c-version-picker-focus-ring);
|
|
@@ -109,9 +112,9 @@ dx-button::part(content) {
|
|
|
109
112
|
|
|
110
113
|
.version-picker-button[aria-expanded="true"]::part(container) {
|
|
111
114
|
background: var(--dx-g-blue-vibrant-95);
|
|
112
|
-
border:
|
|
115
|
+
border: 1px solid var(--dx-g-blue-vibrant-95);
|
|
113
116
|
border-radius: var(--dx-g-spacing-xs);
|
|
114
|
-
box-shadow:
|
|
117
|
+
box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-20);
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
/* Keyboard focus while closed. Open uses the host halo above. */
|
|
@@ -121,9 +124,10 @@ dx-button::part(content) {
|
|
|
121
124
|
--dx-g-button-icon-color: var(--dx-g-blue-vibrant-20);
|
|
122
125
|
|
|
123
126
|
background: var(--dx-g-blue-vibrant-95);
|
|
124
|
-
border:
|
|
127
|
+
border: 1px solid var(--dx-g-blue-vibrant-95);
|
|
125
128
|
border-radius: var(--dx-g-spacing-xs);
|
|
126
|
-
box-shadow: var(--dx-
|
|
129
|
+
box-shadow: inset 0 0 0 2px var(--dx-g-blue-vibrant-20),
|
|
130
|
+
var(--dx-c-version-picker-focus-ring);
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
.selected-version {
|