Skip to content

Commit 9f9e1be

Browse files
author
Brijesh Bittu
committed
Move Composition page to Guides category
1 parent 428986b commit 9f9e1be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/src/content/features/composition.mdx docs/src/content/guides/composition.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Subtitle>How Pigment CSS handles css precedence and composition.</Subtitle>
44
<Meta name="description" content="How Pigment CSS handles CSS precedence and composition." />
55

6-
Styles authored with Pigment CSS will be scoped to the component and won't affect globals styles or styles of any other styled components.
6+
Styles authored with Pigment CSS will be scoped to the component and won't affect globals styles or styles of any other styled components. This is mainly done by using uniquely generated class names that are hard to override through global styles since you don't know the class names beforehand.
77

88
In a way, it is similar to CSS Modules except, the styles are written in JS and colocated with the components.
99

docs/src/nav.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ export const nav: NavItem[] = [
4545
label: 'Variants',
4646
href: '/features/variants',
4747
},
48-
{
49-
label: 'Composition',
50-
href: '/features/composition',
51-
},
5248
],
5349
},
5450
{
@@ -59,6 +55,10 @@ export const nav: NavItem[] = [
5955
label: 'How it works',
6056
href: '/guides/how-it-works',
6157
},
58+
{
59+
label: 'Composition',
60+
href: '/guides/composition',
61+
},
6262
{
6363
label: 'Migration',
6464
href: '/guides/migration',

0 commit comments

Comments
 (0)