Skip to content

Commit

Permalink
Merge branch 'main' into markdown-img-bg
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanatsmith authored Sep 17, 2024
2 parents c2abf77 + c078252 commit c57737e
Show file tree
Hide file tree
Showing 30 changed files with 382 additions and 682 deletions.
256 changes: 116 additions & 140 deletions docs/package-lock.json

Large diffs are not rendered by default.

713 changes: 177 additions & 536 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"build:storybook": "cd docs && npm i && npm run build:storybook"
},
"dependencies": {
"@primer/primitives": "^8.2.0",
"@primer/view-components": "^0.30.0"
"@primer/primitives": "^9.0.3",
"@primer/view-components": "^0.33.0"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
Expand Down
7 changes: 7 additions & 0 deletions src/autocomplete/suggester.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@
list-style: none;
cursor: pointer;
background: var(--overlay-bgColor, var(--color-canvas-overlay));
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
box-shadow: var(--shadow-resting-medium, var(--color-shadow-medium));

li {
display: block;
padding: var(--base-size-4) var(--base-size-8);
font-weight: $font-weight-semibold;
// stylelint-disable-next-line primer/borders
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));

small {
Expand All @@ -29,12 +32,16 @@

&:last-child {
border-bottom: 0;
// stylelint-disable-next-line primer/borders
border-bottom-right-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-left-radius: $border-radius;
}

&:first-child {
// stylelint-disable-next-line primer/borders
border-top-left-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-top-right-radius: $border-radius;
}

Expand Down
2 changes: 2 additions & 0 deletions src/base/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ hr,
overflow: hidden;
background: transparent;
border: 0;
// stylelint-disable-next-line primer/borders
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));

@include clearfix();
Expand All @@ -72,6 +73,7 @@ hr,

table {
border-spacing: 0;
// stylelint-disable-next-line primer/borders
border-collapse: collapse;
}

Expand Down
1 change: 1 addition & 0 deletions src/base/kbd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ kbd {
// stylelint-disable-next-line primer/borders
border: $border-style $border-width var(--borderColor-neutral-muted, var(--color-neutral-muted));
border-bottom-color: var(--borderColor-neutral-muted, var(--color-neutral-muted));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
// stylelint-disable-next-line primer/box-shadow
box-shadow: inset 0 -1px 0 var(--borderColor-neutral-muted, var(--color-neutral-muted));
Expand Down
3 changes: 3 additions & 0 deletions src/box/box-overlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
.Box-header {
margin: 0;
border-width: 0;
// stylelint-disable-next-line primer/borders
border-bottom-width: $border-width;
// stylelint-disable-next-line primer/borders
border-top-left-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-top-right-radius: $border-radius;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/branch-name/branch-name.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
color: var(--fgColor-muted, var(--color-fg-muted));
word-break: break-all;
background-color: var(--bgColor-accent-muted, var(--color-accent-subtle));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;

.octicon {
Expand Down
12 changes: 12 additions & 0 deletions src/buttons/button-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@
border-radius: 0;

&:first-child {
// stylelint-disable-next-line primer/borders
border-top-left-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-left-radius: $border-radius;
}

&:last-child {
// stylelint-disable-next-line primer/borders
border-right-width: $border-width;
// stylelint-disable-next-line primer/borders
border-top-right-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-right-radius: $border-radius;
}

Expand All @@ -38,6 +43,7 @@
&:focus,
&:active,
&:hover {
// stylelint-disable-next-line primer/borders
border-right-width: $border-width;

+ .BtnGroup-item,
Expand All @@ -51,13 +57,18 @@
float: left;

&:first-child .BtnGroup-item {
// stylelint-disable-next-line primer/borders
border-top-left-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-left-radius: $border-radius;
}

&:last-child .BtnGroup-item {
// stylelint-disable-next-line primer/borders
border-right-width: $border-width;
// stylelint-disable-next-line primer/borders
border-top-right-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-right-radius: $border-radius;
}

Expand All @@ -72,6 +83,7 @@
&:active,
&:hover {
.BtnGroup-item {
// stylelint-disable-next-line primer/borders
border-right-width: $border-width;
}

Expand Down
2 changes: 2 additions & 0 deletions src/buttons/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
vertical-align: middle;
cursor: pointer;
user-select: none;
// stylelint-disable-next-line primer/borders
border: $border-width $border-style;
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
appearance: none; // Corrects inability to style clickable `input` types in iOS.

Expand Down
6 changes: 6 additions & 0 deletions src/buttons/misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
&:not(.dropdown-item) {
&:focus,
&:focus-visible {
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
outline-offset: 0;
}
Expand All @@ -45,6 +46,7 @@
color: var(--fgColor-accent, var(--color-accent-fg));
background-color: transparent; // Reset default gradient backgrounds and colors
border: 0;
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
box-shadow: none;

Expand Down Expand Up @@ -103,6 +105,7 @@

&:focus,
&:focus-visible {
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
}

Expand Down Expand Up @@ -214,9 +217,12 @@
color: var(--fgColor-default, var(--color-fg-default));
vertical-align: middle;
background-color: var(--bgColor-default, var(--color-canvas-default));
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--button-default-borderColor-rest, var(--color-btn-border));
border-left: 0;
// stylelint-disable-next-line primer/borders
border-top-right-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-right-radius: $border-radius;
box-shadow: var(--shadow-resting-small, var(--color-shadow-small)), var(--shadow-highlight, var(--color-primer-shadow-highlight));

Expand Down
6 changes: 6 additions & 0 deletions src/forms/form-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
background-color: var(--bgColor-default, var(--color-canvas-default));
background-repeat: no-repeat; // Repeat and position set for form states (success, error, etc)
background-position: right 8px center; // For form validation. This keeps images 8px from right and centered vertically.
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--control-borderColor-rest, var(--color-border-default));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
box-shadow: var(--shadow-inset, var(--color-primer-shadow-inset));
transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
Expand All @@ -43,6 +45,7 @@
&.border-0 {
&:focus,
&:focus-visible {
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--borderColor-accent-emphasis, var(--color-accent-fg)) !important;
}
}
Expand Down Expand Up @@ -143,6 +146,7 @@ textarea.form-control {
padding: 2px var(--base-size-4);
font-style: normal;
background: var(--bgColor-attention-muted, var(--color-attention-subtle));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
}
}
Expand Down Expand Up @@ -254,7 +258,9 @@ input::-webkit-inner-spin-button {
font-size: $h5-size;
color: var(--fgColor-attention, var(--color-attention-fg));
background: var(--bgColor-attention-muted, var(--color-attention-subtle));
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--borderColor-attention-emphasis, var(--color-attention-emphasis));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;

p {
Expand Down
3 changes: 3 additions & 0 deletions src/forms/form-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@
margin: var(--base-size-8) 0 0;
font-size: $font-size-small;
font-weight: $font-weight-normal;
// stylelint-disable-next-line primer/borders
border-style: $border-style;
// stylelint-disable-next-line primer/borders
border-width: $border-width;
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;

&::after,
Expand Down
5 changes: 5 additions & 0 deletions src/forms/radio-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
line-height: 20px; // Specifically not inherit our `<body>` default
color: var(--fgColor-default, var(--color-fg-default));
cursor: pointer;
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));

:checked + & {
Expand All @@ -25,12 +26,16 @@

&:first-of-type {
margin-left: 0;
// stylelint-disable-next-line primer/borders
border-top-left-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-left-radius: $border-radius;
}

&:last-of-type {
// stylelint-disable-next-line primer/borders
border-top-right-radius: $border-radius;
// stylelint-disable-next-line primer/borders
border-bottom-right-radius: $border-radius;
}

Expand Down
1 change: 1 addition & 0 deletions src/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
.Header-input {
color: var(--header-fgColor-default, var(--color-header-text));
background-color: var(--headerSearch-bgColor, var(--color-header-search-bg));
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--headerSearch-borderColor, var(--color-header-search-border));
box-shadow: none;

Expand Down
2 changes: 2 additions & 0 deletions src/labels/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
font-weight: $font-weight-semibold;
line-height: 18px;
white-space: nowrap;
// stylelint-disable-next-line primer/borders
border: $border-width $border-style transparent;
// stylelint-disable-next-line primer/borders
border-radius: 2em;
}

Expand Down
1 change: 0 additions & 1 deletion src/layout/app-frame.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// stylelint-disable max-nesting-depth
// stylelint-disable primer/spacing
// stylelint-disable primer/borders

.AppFrame {

Expand Down
4 changes: 2 additions & 2 deletions src/layout/stack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@

:not(.Stack--dir-inline#{$viewportRange}) > .Stack-divider,
:not(.Stack--dir-inline#{$viewportRange}) > .Stack-item > .Stack-divider {
border-block-end: var(--borderWidth-thin, 1px) solid var(--Stack-divider-color);
border-block-end: var(--borderWidth-thin, var(--borderWidth-thin)) solid var(--Stack-divider-color);
inline-size: auto;
block-size: 0;
}

.Stack--dir-inline#{$viewportRange} > .Stack-divider,
.Stack--dir-inline#{$viewportRange} > .Stack-item > .Stack-divider {
border-inline-end: var(--borderWidth-thin, 1px) solid var(--Stack-divider-color);
border-inline-end: var(--borderWidth-thin, var(--borderWidth-thin)) solid var(--Stack-divider-color);
inline-size: 0;
block-size: auto;
}
Expand Down
2 changes: 2 additions & 0 deletions src/markdown/code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
font-size: 85%;
white-space: break-spaces; // keeps rendering spaces, but breaks them onto multiple lines
background-color: var(--bgColor-neutral-muted, var(--color-neutral-muted));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;

br { display: none; }
Expand Down Expand Up @@ -60,6 +61,7 @@
line-height: 1.45;
color: var(--fgColor-default, var(--color-fg-default));
background-color: var(--bgColor-muted, var(--color-canvas-subtle));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
}

Expand Down
2 changes: 2 additions & 0 deletions src/markdown/footnotes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.footnotes {
font-size: $h6-size;
color: var(--fgColor-muted, var(--color-fg-muted));
// stylelint-disable-next-line primer/borders
border-top: $border;

ol {
Expand All @@ -41,6 +42,7 @@
content: '';
// stylelint-disable-next-line primer/borders
border: 2px $border-style var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;
}

Expand Down
2 changes: 2 additions & 0 deletions src/markdown/headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
padding-bottom: 0.3em;
// stylelint-disable-next-line primer/typography
font-size: 2em;
// stylelint-disable-next-line primer/borders
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
}

Expand All @@ -49,6 +50,7 @@
padding-bottom: 0.3em;
// stylelint-disable-next-line primer/typography
font-size: 1.5em;
// stylelint-disable-next-line primer/borders
border-bottom: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));
}

Expand Down
1 change: 1 addition & 0 deletions src/markdown/images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
// stylelint-disable-next-line primer/spacing
margin: 13px 0 0;
overflow: hidden;
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
}

Expand Down
2 changes: 2 additions & 0 deletions src/markdown/tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
td {
// stylelint-disable-next-line primer/spacing
padding: 6px 13px;
// stylelint-disable-next-line primer/borders
border: $border-width $border-style var(--borderColor-default, var(--color-border-default));
}

Expand All @@ -28,6 +29,7 @@

tr {
background-color: var(--bgColor-default, var(--color-canvas-default));
// stylelint-disable-next-line primer/borders
border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));

&:nth-child(2n) {
Expand Down
1 change: 1 addition & 0 deletions src/navigation/filter-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
// stylelint-disable-next-line primer/borders
border-radius: $border-radius;

&:hover {
Expand Down
1 change: 1 addition & 0 deletions src/navigation/sidenav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
text-align: left;
background-color: transparent;
border: 0;
// stylelint-disable-next-line primer/borders
border-top: $border-width $border-style var(--borderColor-muted, var(--color-border-muted));

&:first-child {
Expand Down
Loading

0 comments on commit c57737e

Please sign in to comment.