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
5 changes: 5 additions & 0 deletions .changeset/wet-mammals-feel.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
---
'@primer/react': major
---

Remove support for `sx` from `PageHeader`
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 0 additions & 50 deletions packages/react/src/PageHeader/PageHeader.dev.stories.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -47,53 +47,3 @@ export const LargeVariantWithMultilineTitle = () => (
</PageHeader>
</div>
)

export const ArrayTypeFontSizeOnTitle = () => (
<div className={classes.Container}>
<PageHeader role="banner" aria-label="Issue Title">
<PageHeader.TitleArea>
<PageHeader.Title
sx={{
lineHeight: '1.25',
fontWeight: 'normal',
fontSize: ['26px', '26px', 'var(--text-title-size-large, 32px)', 'var(--text-title-size-large, 32px)'], // it doesn't support this format right now.
}}
>
Issue Title
</PageHeader.Title>
</PageHeader.TitleArea>
</PageHeader>
</div>
)

export const ThemeBaseFontSizeOnTitle = () => (
<div className={classes.Container}>
<PageHeader role="banner" aria-label="Issue Title">
<PageHeader.TitleArea>
<PageHeader.Title
sx={{
fontSize: 8,
}}
>
Issue Title
</PageHeader.Title>
</PageHeader.TitleArea>
</PageHeader>
</div>
)

export const StringTypeFontSizeOnTitle = () => (
<div className={classes.Container}>
<PageHeader role="banner" aria-label="Issue Title">
<PageHeader.TitleArea>
<PageHeader.Title
sx={{
fontSize: '56px',
}}
>
Issue Title
</PageHeader.Title>
</PageHeader.TitleArea>
</PageHeader>
</div>
)
78 changes: 2 additions & 76 deletions packages/react/src/PageHeader/PageHeader.docs.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -69,11 +69,6 @@
"type": "AriaRole",
"description": "The ARIA role to assign to the top-level node of this component."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
},
{
"name": "as",
"type": "React.ElementType",
Expand All@@ -100,11 +95,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand DownExpand Up@@ -134,11 +124,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "`{ narrow: false regular: true wide: true }`",
"description": "Whether the parent link is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -156,11 +141,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -178,11 +158,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -206,11 +181,6 @@
"type": "| 'subtitle' | 'medium' | 'large' | { narrow?: | 'subtitle' | 'medium' | 'large' regular?: | 'subtitle' | 'medium' | 'large' wide?: | 'subtitle' | 'medium' | 'large' }",
"defaultValue": "medium",
"description": "Default title (medium) is the most common page title size. Use for static titles in most situations.\nLarge variant should be used for user-generated content such as issues, pull requests, or discussions.\nSubtitle variant can be used when a PageHeader.Title is already present in the page, such as in a SplitPageLayout."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -228,11 +198,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -250,11 +215,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -273,11 +233,6 @@
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
},
{
"name": "as",
"type": "React.ElementType",
Expand All@@ -299,11 +254,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -321,11 +271,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -343,11 +288,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -365,11 +305,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand All@@ -387,11 +322,6 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
},
Expand DownExpand Up@@ -425,13 +355,9 @@
"type": "| boolean | { narrow?: boolean regular?: boolean wide?: boolean }",
"defaultValue": "false",
"description": "Whether the content is hidden."
},
{
"name": "sx",
"type": "SystemStyleObject",
"deprecated": true
}
]
}
]
}
}

Loading
Loading