-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ActionBar: convert to CSS Modules + add new
flush
prop to adjust pa…
…dding (#5540) * add props * fix border * fix type * remove label * try fix test? * Create shy-carpets-relax.md * test(vrt): update snapshots --------- Co-authored-by: langermank <[email protected]>
- Loading branch information
1 parent
191950e
commit 20788da
Showing
14 changed files
with
104 additions
and
87 deletions.
There are no files selected for viewing
This file contains 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,6 @@ | ||
--- | ||
"@primer/react": minor | ||
--- | ||
|
||
- Convert ActionBar to CSS Modules | ||
- Add new padding prop for container padding |
Binary file modified
BIN
-7 Bytes
(100%)
...tionBar.test.ts-snapshots/drafts-ActionBar-CommentBox-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-14 Bytes
(100%)
...s/ActionBar.test.ts-snapshots/drafts-ActionBar-CommentBox-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-13 Bytes
(100%)
...nBar.test.ts-snapshots/drafts-ActionBar-CommentBox-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...s/drafts/ActionBar.test.ts-snapshots/drafts-ActionBar-CommentBox-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...tionBar.test.ts-snapshots/drafts-ActionBar-CommentBox-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...ionBar.test.ts-snapshots/drafts-ActionBar-CommentBox-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8 Bytes
(100%)
...Bar.test.ts-snapshots/drafts-ActionBar-CommentBox-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
.../drafts/ActionBar.test.ts-snapshots/drafts-ActionBar-CommentBox-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...ionBar.test.ts-snapshots/drafts-ActionBar-CommentBox-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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,35 @@ | ||
.List { | ||
position: relative; | ||
display: flex; | ||
min-width: 0; | ||
|
||
/* wonder why this is here */ | ||
/* stylelint-disable-next-line primer/spacing */ | ||
margin-bottom: -1px; | ||
white-space: nowrap; | ||
list-style: none; | ||
align-items: center; | ||
gap: var(--base-size-8); | ||
} | ||
|
||
.Nav { | ||
display: flex; | ||
padding-inline: var(--base-size-16); | ||
justify-content: flex-end; | ||
align-items: center; | ||
|
||
&:where([data-flush='true']) { | ||
padding-inline: 0; | ||
} | ||
} | ||
|
||
.Divider { | ||
&::before { | ||
display: block; | ||
width: var(--borderWidth-thin); | ||
height: var(--base-size-20); | ||
content: ''; | ||
/* stylelint-disable-next-line primer/colors */ | ||
background: var(--borderColor-muted); | ||
} | ||
} |
This file contains 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 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