Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/dynamicNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ export function DynamicNav({
activeClassName="active"
data-sidebar-link
>
<h6>{title}</h6>
<strong>{title}</strong>
{withChevron && <NavChevron direction={isActive ? 'down' : 'right'} />}
</SmartLink>
) : (
<div className={headerClassName} data-sidebar-link>
<h6>{title}</h6>
<strong>{title}</strong>
</div>
);

Expand Down
4 changes: 1 addition & 3 deletions src/components/guideGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ export function GuideGrid({platform, className}: Props) {

return (
<Fragment>
<div className="doc-toc-title">
<h6>Related Guides</h6>
</div>
<h2>Related Guides</h2>
<ul className={className}>
{currentPlatform.guides.map(guide => (
<li key={guide.key}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@ export function Search({
>
<MagicIcon className="size-6 text-[var(--sgs-color-hit-highlight)] flex-shrink-0" />
<div className={styles['sgs-ai-button-content']}>
<h6>
<div className={styles['sgs-ai-button-heading']}>
Ask Sentry about{' '}
<span>{query.length > 30 ? query.slice(0, 30) + '...' : query}</span>
</h6>
</div>
<div className={styles['sgs-ai-hint']}>
Get an AI-powered answer to your question
</div>
Expand Down
29 changes: 15 additions & 14 deletions src/components/search/search.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,6 @@
padding: 0;
}

h6 {
margin-top: 0;
margin-bottom: 0.25rem;
font-size: 0.875rem;
color: var(--sgs-color-hit-text);
}

a {
display: block;
text-decoration: none;
Expand All @@ -192,6 +185,12 @@
}
}

.sgs-hit-title {
margin-bottom: 0.25rem;
font-size: 0.875rem;
color: var(--sgs-color-hit-text);
}

.sgs-ai {
color: var(--sgs-color-hit-text);
padding: 0.25rem;
Expand All @@ -214,15 +213,17 @@
flex-direction: column;
align-items: flex-start;
flex: 1;
}

h6 {
font-size: 0.875rem;
line-height: 1.25rem;
margin: 0;
&-heading {
margin-bottom: 0.25rem;
font-size: 0.875rem;
color: var(--sgs-color-hit-text);
line-height: 1.25rem;
margin: 0;

span {
color: var(--sgs-color-hit-highlight);
}
span {
color: var(--sgs-color-hit-highlight);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/searchResultItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export function SearchResultItems({
onClick={event => onSearchResultClick({event, hit, position: index})}
>
{hit.title && (
<h6>
<div className={styles['sgs-hit-title']}>
<span
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(hit.title, {
ALLOWED_TAGS: ['mark'],
}),
}}
/>
</h6>
</div>
)}
{hit.text && (
<span
Expand Down
4 changes: 3 additions & 1 deletion src/components/sidebar/defaultSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export function DefaultSidebar({node, path}: DefaultSidebarProps) {
data-sidebar-link
key={node.path}
>
<h6>{node.frontmatter.sidebar_title || node.frontmatter.title}</h6>
<div className={styles['sidebar-link-heading']}>
{node.frontmatter.sidebar_title || node.frontmatter.title}
</div>
</Link>
{renderChildren(node.children)}
</Fragment>
Expand Down
1 change: 0 additions & 1 deletion src/components/sidebar/platformSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export function PlatformSidebar({
title={`Sentry for ${(guide || platform).title}`}
exclude={[`/${pathRoot}/guides/`]}
headerClassName={headerClassName}
withChevron
/>
</ul>
);
Expand Down
6 changes: 4 additions & 2 deletions src/components/sidebar/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,18 @@
&.active {
background-color: var(--brandDecoration);

h6 {
strong {
color: #fff;
}
}

h6 {
strong {
display: block;
margin-bottom: 0;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.2px;
color: inherit;
font-weight: inherit;
}
}
6 changes: 1 addition & 5 deletions src/components/sidebarTableOfContents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,7 @@ export function SidebarTableOfContents() {

return (
<div className={styles['doc-toc']}>
{!!tocItems.length && (
<div className={styles['doc-toc-title']}>
<h6>On this page</h6>
</div>
)}
{!!tocItems.length && <h2 className={styles['doc-toc-title']}>On this page</h2>}
<ul className={styles['section-nav']}>{recursiveRender(buildTocTree(tocItems))}</ul>
</div>
);
Expand Down
12 changes: 4 additions & 8 deletions src/components/sidebarTableOfContents/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,8 @@
.doc-toc-title {
font-weight: 500;
margin-bottom: 0.25rem;

h6 {
margin-bottom: 0;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.2px;
color: inherit;
}
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.2px;
color: inherit;
}
Loading