Skip to content

Commit cd7f7bf

Browse files
committed
improvement(docs): drop the under-label rule on the learn callout
A full-width rule under the small "What you will learn" label read as an awkward heading underline and blurred into the inter-item dividers. The label is now a quiet muted marker (matching the Chapters label and the TOC heading), with dividers only between items — so it never competes with the bold item titles or looks like an underlined heading.
1 parent 9316af5 commit cd7f7bf

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

apps/docs/components/ui/what-you-will-learn.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@ interface WhatYouWillLearnProps {
1111
}
1212

1313
/**
14-
* "What you will learn" — a flat, divider-based callout matching the docs'
15-
* card-flattening language (transparent, no filled box, like the FAQ list),
16-
* with a small label at the app's panel-title scale rather than page-h2 scale.
14+
* "What you will learn" — a flat callout matching the docs' flat/divider
15+
* language. A quiet muted label (like the TOC heading) sits above the
16+
* takeaways; dividers fall only between items, so the label reads as a marker
17+
* rather than an underlined heading and never competes with the item titles.
1718
*/
1819
export function WhatYouWillLearn({ items, className }: WhatYouWillLearnProps) {
1920
return (
2021
<div className={cn('not-prose', className)}>
21-
<p className='mb-3 font-medium text-[var(--text-primary)] text-sm'>What you will learn</p>
22-
<div className='border-[var(--border)] border-t'>
22+
<p className='mb-3 font-medium text-[0.8125rem] text-[var(--text-muted)]'>
23+
What you will learn
24+
</p>
25+
<div className='divide-y divide-[var(--border)]'>
2326
{items.map((item) => (
24-
<div key={item.title} className='border-[var(--border)] border-b py-3.5'>
27+
<div key={item.title} className='py-3.5 first:pt-0 last:pb-0'>
2528
<p className='mb-1 font-medium text-[var(--text-primary)] text-sm'>{item.title}</p>
2629
<p className='m-0 text-[var(--text-secondary)] text-sm leading-relaxed'>{item.body}</p>
2730
</div>

0 commit comments

Comments
 (0)