Skip to content

Commit 925fa0e

Browse files
committed
Merge branch 'japf/resizable-pane' of github.com:primer/react into japf/resizable-pane
2 parents d2076f5 + a9f81ac commit 925fa0e

File tree

13 files changed

+57
-24
lines changed

13 files changed

+57
-24
lines changed

.changeset/angry-wombats-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
Add maxWidth to container of PageLayout.{Pane, Content}

.changeset/gold-rabbits-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
ConfirmationDialog: Remove header landmark to improve accessibility

.changeset/rude-bats-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
fixes colors for done and sponsors label

.changeset/silly-coins-doubt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
Address scenario in useLinkInterception where onLinkClick was not being called when the DOM was updated outside of React

docs/content/CounterLabel.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ source: https://github.com/primer/react/blob/main/src/CounterLabel.tsx
2121
<PropsTable>
2222
<PropsTableRow
2323
name="scheme"
24-
type="''primary' | 'secondary'"
24+
type="'primary' | 'secondary'"
2525
description="Pass in 'primary' for a darker background and inverse text, or 'secondary' for a lighter background and primary text. Omitting the scheme prop renders the default counter scheme"
2626
/>
2727
</PropsTable>

src/Dialog/ConfirmationDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface ConfirmationDialogProps {
4040
confirmButtonType?: 'normal' | 'primary' | 'danger'
4141
}
4242

43-
const StyledConfirmationHeader = styled.header`
43+
const StyledConfirmationHeader = styled.div`
4444
padding: ${get('space.2')};
4545
display: flex;
4646
flex-direction: row;

src/Label.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ export const variants: Record<LabelColorOptions, BetterSystemStyleObject> = {
5656
color: 'danger.fg'
5757
},
5858
done: {
59-
borderColor: 'done.fg',
60-
color: 'done.emphasis'
59+
borderColor: 'done.emphasis',
60+
color: 'done.fg'
6161
},
6262
sponsors: {
63-
borderColor: 'sponsors.fg',
64-
color: 'sponsors.emphasis'
63+
borderColor: 'sponsors.emphasis',
64+
color: 'sponsors.fg'
6565
}
6666
}
6767

src/PageLayout/PageLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const Root: React.FC<React.PropsWithChildren<PageLayoutProps>> = ({
102102
return (
103103
<>
104104
{slots.Header}
105-
<Box sx={{display: 'flex', flex: '1 1 100%', flexWrap: 'wrap'}}>{children}</Box>
105+
<Box sx={{display: 'flex', flex: '1 1 100%', flexWrap: 'wrap', maxWidth: '100%'}}>{children}</Box>
106106
{slots.Footer}
107107
</>
108108
)

src/PageLayout/__snapshots__/PageLayout.test.tsx.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ exports[`PageLayout renders condensed layout 1`] = `
2525
-webkit-flex-wrap: wrap;
2626
-ms-flex-wrap: wrap;
2727
flex-wrap: wrap;
28+
max-width: 100%;
2829
}
2930
3031
.c6 {
@@ -275,6 +276,7 @@ exports[`PageLayout renders default layout 1`] = `
275276
-webkit-flex-wrap: wrap;
276277
-ms-flex-wrap: wrap;
277278
flex-wrap: wrap;
279+
max-width: 100%;
278280
}
279281
280282
.c6 {
@@ -567,6 +569,7 @@ exports[`PageLayout renders pane in different position when narrow 1`] = `
567569
-webkit-flex-wrap: wrap;
568570
-ms-flex-wrap: wrap;
569571
flex-wrap: wrap;
572+
max-width: 100%;
570573
}
571574
572575
.c6 {
@@ -859,6 +862,7 @@ exports[`PageLayout renders with dividers 1`] = `
859862
-webkit-flex-wrap: wrap;
860863
-ms-flex-wrap: wrap;
861864
flex-wrap: wrap;
865+
max-width: 100%;
862866
}
863867
864868
.c6 {

src/SplitPageLayout/__snapshots__/SplitPageLayout.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ exports[`SplitPageLayout renders default layout 1`] = `
2929
-webkit-flex-wrap: wrap;
3030
-ms-flex-wrap: wrap;
3131
flex-wrap: wrap;
32+
max-width: 100%;
3233
}
3334
3435
.c6 {

0 commit comments

Comments
 (0)