@primer/doctocat-nextjs 0.0.0-20251124214113 → 0.0.0-20251127163634
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
CHANGED
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
color: var(--base-color-scale-white-0);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
.header {
|
|
43
|
+
color: var(--fgColor-onEmphasis, var(--color-fg-on-emphasis));
|
|
44
|
+
}
|
|
45
|
+
|
|
42
46
|
.content {
|
|
43
47
|
display: flex;
|
|
44
48
|
flex-direction: column;
|
|
@@ -55,6 +59,6 @@
|
|
|
55
59
|
|
|
56
60
|
.indentedContent {
|
|
57
61
|
margin: 0;
|
|
58
|
-
border-left: 4px solid;
|
|
62
|
+
border-left: 4px solid var(--brand-color-border-default);
|
|
59
63
|
padding-left: 1rem;
|
|
60
64
|
}
|
|
@@ -38,12 +38,12 @@ type DoDontBaseProps = {
|
|
|
38
38
|
export function DoDontBase({children, title, indented, className, ...rest}: React.PropsWithChildren<DoDontBaseProps>) {
|
|
39
39
|
return (
|
|
40
40
|
<div className={clsx(`exclude-from-prose`, styles.doDontBase, className)} {...rest}>
|
|
41
|
-
<div className={styles.header}
|
|
41
|
+
<div className={styles.header}>
|
|
42
42
|
<span className={styles.headerText}>{title}</span>
|
|
43
43
|
</div>
|
|
44
44
|
<div className={styles.content}>
|
|
45
45
|
{indented ? (
|
|
46
|
-
<blockquote className={styles.indentedContent}
|
|
46
|
+
<blockquote className={styles.indentedContent}>
|
|
47
47
|
{children}
|
|
48
48
|
</blockquote>
|
|
49
49
|
) : (
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
font-size: var(--brand-text-size-100);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.NavListGroup {
|
|
23
|
+
margin-bottom: var(--base-size-24);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.NavListItemCapitalize {
|
|
27
|
+
text-transform: capitalize;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
.NavList__Container li a,
|
|
23
31
|
.NavList__Container li button {
|
|
24
32
|
font-size: var(--brand-text-size-200);
|
|
@@ -77,7 +77,7 @@ export function Sidebar({pageMap}: SidebarProps) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
return (
|
|
80
|
-
<NavList.Group title={subNavName} key={item.name}
|
|
80
|
+
<NavList.Group title={subNavName} key={item.name} className={styles.NavListGroup}>
|
|
81
81
|
<NavList.GroupHeading as="h3">
|
|
82
82
|
<NextLink href={item.route}>{subNavName}</NextLink>
|
|
83
83
|
</NavList.GroupHeading>
|
|
@@ -142,9 +142,8 @@ export function Sidebar({pageMap}: SidebarProps) {
|
|
|
142
142
|
as={NextLink}
|
|
143
143
|
key={landingPageItem.route}
|
|
144
144
|
href={landingPageItem.route}
|
|
145
|
-
style={{textTransform: 'capitalize'}}
|
|
146
145
|
aria-current={isCurrentOrChild ? 'page' : undefined}
|
|
147
|
-
className={styles.NavListItem}
|
|
146
|
+
className={`${styles.NavListItem} ${styles.NavListItemCapitalize}`}
|
|
148
147
|
>
|
|
149
148
|
{landingPageItem.frontMatter?.title || item.name}
|
|
150
149
|
</NavList.Item>
|
|
@@ -155,7 +154,7 @@ export function Sidebar({pageMap}: SidebarProps) {
|
|
|
155
154
|
)
|
|
156
155
|
})}
|
|
157
156
|
{sidebarLinks.length > 0 && (
|
|
158
|
-
<NavList.Group title=""
|
|
157
|
+
<NavList.Group title="" className={styles.NavListGroup}>
|
|
159
158
|
{sidebarLinks.map(link => {
|
|
160
159
|
return (
|
|
161
160
|
<NavList.Item
|