-
Notifications
You must be signed in to change notification settings - Fork 640
Remove Box usage from components #6805
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
151c588
removes Box usage from components, which sometimes includes removing …
mperrotti b290616
Merge branch 'main' of github.com:primer/react into mp/rm-box-from-co…
mperrotti d7d0ec6
fixes unsupported 'sx' prop usage in PageHeader.Title and PageHeader.…
mperrotti 3828d07
makes Announce polymorphic again, fixes other issues revealed by unit…
mperrotti b5acc9d
moves some components to react-styled to continue supporting sx prop
mperrotti 83aab73
Merge branch 'main' of github.com:primer/react into mp/rm-box-from-co…
mperrotti 8702e20
revert sx prop removals that require styled-react additions
mperrotti 15fd6ec
rm styled-react additions
mperrotti 2c3eb6a
fixes type error in Pagination story args
mperrotti 2482917
fixes ScrollableRegion className bug
mperrotti 1b2faed
adds changeset
mperrotti 3a16c86
Merge branch 'main' into mp/rm-box-from-components
mperrotti a0cfd10
Merge branch 'main' into mp/rm-box-from-components
mperrotti 4014284
Merge branch 'main' into mp/rm-box-from-components
mperrotti 4945a70
Merge branch 'main' of github.com:primer/react into mp/rm-box-from-co…
mperrotti e530c37
Merge branch 'mp/rm-box-from-components' of github.com:primer/react i…
mperrotti 07c9ef3
replaces polymorphic2 with modern-polymorphic
mperrotti 69e2619
fixes silly typo causing type errors
mperrotti f234b87
Merge branch 'main' into mp/rm-box-from-components
mperrotti dc16cc9
fixes type errors in Announce, AriaAlert, and AriaStatus
mperrotti d7794e5
Merge branch 'mp/rm-box-from-components' of github.com:primer/react i…
mperrotti e077c32
Merge branch 'main' of github.com:primer/react into mp/rm-box-from-co…
mperrotti 02f350f
reverts changes to BranchName
mperrotti 85482da
Merge branch 'main' into mp/rm-box-from-components
mperrotti 1684a76
Merge branch 'main' into mp/rm-box-from-components
mperrotti 83fdf72
Merge branch 'main' of github.com:primer/react into mp/rm-box-from-co…
mperrotti 5827e14
Merge branch 'main' into mp/rm-box-from-components
mperrotti 7abd43c
Merge branch 'main' into mp/rm-box-from-components
mperrotti 07640ac
Merge branch 'main' into mp/rm-box-from-components
mperrotti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': major | ||
--- | ||
|
||
Removes usage of Box component from other components. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.OverlayContainer { | ||
align-items: flex-start; | ||
display: flex; | ||
} | ||
|
||
.OverlayInner { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: var(--base-size-4); | ||
} | ||
|
||
.CloseButton { | ||
flex-shrink: 0; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.GroupHeading > a { | ||
color: var(--fgColor-default); | ||
text-decoration: inherit; | ||
} | ||
|
||
.GroupHeading > a:hover { | ||
text-decoration: underline; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,10 +78,4 @@ Playground.argTypes = { | |
disable: true, | ||
}, | ||
}, | ||
theme: { | ||
control: false, | ||
table: { | ||
disable: true, | ||
}, | ||
}, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.Placeholder { | ||
/* these are set in the component */ | ||
--placeholder-width: ; | ||
--placeholder-height: ; | ||
|
||
width: var(--placeholder-width, 100%); | ||
height: var(--placeholder-height); | ||
display: grid; | ||
place-items: center; | ||
background-color: var(--bgColor-inset); | ||
border-radius: var(--borderRadius-medium); | ||
border: var(--borderWidth-thin) solid var(--borderColor-muted); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/react/src/ScrollableRegion/ScrollableRegion.module.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.ScrollableRegion { | ||
/* When setting overflow, we also set `position: relative` to avoid | ||
* `position: absolute` items breaking out of the container and causing | ||
* scrollbars on the page. This can occur with common classes like `sr-only` | ||
* and can cause difficult to track down layout issues */ | ||
position: relative; | ||
overflow: auto; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove this comment now that this PR is "Ready for review"