Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX TYPOGRAPHY P #4889

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion apps/www/components/mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const components = {
),
p: ({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>) => (
<p
className={cn("leading-7 [&:not(:first-child)]:mt-6", className)}
className={className}
{...props}
/>
),
Expand Down
18 changes: 9 additions & 9 deletions apps/www/registry/default/example/typography-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ export default function TypographyDemo() {
<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl">
The Joke Tax Chronicles
</h1>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
Once upon a time, in a far-off land, there was a very lazy king who
spent all day lounging on his throne. One day, his advisors came to him
with a problem: the kingdom was running out of money.
</p>
<h2 className="mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0">
The King's Plan
</h2>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The king thought long and hard, and finally came up with{" "}
<a
href="#"
Expand All @@ -29,7 +29,7 @@ export default function TypographyDemo() {
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
The Joke Tax
</h3>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The king's subjects were not amused. They grumbled and complained, but
the king was firm:
</p>
Expand All @@ -38,29 +38,29 @@ export default function TypographyDemo() {
<li>2nd level of jokes: 10 gold coins</li>
<li>3rd level of one-liners : 20 gold coins</li>
</ul>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
As a result, people stopped telling jokes, and the kingdom fell into a
gloom. But there was one person who refused to let the king's
foolishness get him down: a court jester named Jokester.
</p>
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
Jokester's Revolt
</h3>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
Jokester began sneaking into the castle in the middle of the night and
leaving jokes all over the place: under the king's pillow, in his soup,
even in the royal toilet. The king was furious, but he couldn't seem to
stop Jokester.
</p>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
And then, one day, the people of the kingdom discovered that the jokes
left by Jokester were so funny that they couldn't help but laugh. And
once they started laughing, they couldn't stop.
</p>
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
The People's Rebellion
</h3>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The people of the kingdom, feeling uplifted by the laughter, started to
tell jokes and puns again, and soon the entire kingdom was in on the
joke.
Expand Down Expand Up @@ -105,12 +105,12 @@ export default function TypographyDemo() {
</tbody>
</table>
</div>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The king, seeing how much happier his subjects were, realized the error
of his ways and repealed the joke tax. Jokester was declared a hero, and
the kingdom lived happily ever after.
</p>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The moral of the story is: never underestimate the power of a good laugh
and always be careful of bad ideas.
</p>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/registry/default/example/typography-p.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function TypographyP() {
return (
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The king, seeing how much happier his subjects were, realized the error of
his ways and repealed the joke tax.
</p>
Expand Down
18 changes: 9 additions & 9 deletions apps/www/registry/new-york/example/typography-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ export default function TypographyDemo() {
<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl">
The Joke Tax Chronicles
</h1>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
Once upon a time, in a far-off land, there was a very lazy king who
spent all day lounging on his throne. One day, his advisors came to him
with a problem: the kingdom was running out of money.
</p>
<h2 className="mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0">
The King's Plan
</h2>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The king thought long and hard, and finally came up with{" "}
<a
href="#"
Expand All @@ -29,7 +29,7 @@ export default function TypographyDemo() {
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
The Joke Tax
</h3>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The king's subjects were not amused. They grumbled and complained, but
the king was firm:
</p>
Expand All @@ -38,29 +38,29 @@ export default function TypographyDemo() {
<li>2nd level of jokes: 10 gold coins</li>
<li>3rd level of one-liners : 20 gold coins</li>
</ul>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
As a result, people stopped telling jokes, and the kingdom fell into a
gloom. But there was one person who refused to let the king's
foolishness get him down: a court jester named Jokester.
</p>
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
Jokester's Revolt
</h3>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
Jokester began sneaking into the castle in the middle of the night and
leaving jokes all over the place: under the king's pillow, in his soup,
even in the royal toilet. The king was furious, but he couldn't seem to
stop Jokester.
</p>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
And then, one day, the people of the kingdom discovered that the jokes
left by Jokester were so funny that they couldn't help but laugh. And
once they started laughing, they couldn't stop.
</p>
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
The People's Rebellion
</h3>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The people of the kingdom, feeling uplifted by the laughter, started to
tell jokes and puns again, and soon the entire kingdom was in on the
joke.
Expand Down Expand Up @@ -105,12 +105,12 @@ export default function TypographyDemo() {
</tbody>
</table>
</div>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The king, seeing how much happier his subjects were, realized the error
of his ways and repealed the joke tax. Jokester was declared a hero, and
the kingdom lived happily ever after.
</p>
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The moral of the story is: never underestimate the power of a good laugh
and always be careful of bad ideas.
</p>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/registry/new-york/example/typography-p.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function TypographyP() {
return (
<p className="leading-7 [&:not(:first-child)]:mt-6">
<p>
The king, seeing how much happier his subjects were, realized the error of
his ways and repealed the joke tax.
</p>
Expand Down