Skip to content

Commit

Permalink
Merge branch 'main' into update/toast-warning-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank authored Oct 20, 2021
2 parents 6d5b7e5 + 88dfbb5 commit 4fac859
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 22 deletions.
5 changes: 0 additions & 5 deletions .changeset/curly-pans-march.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @primer/css

## 18.0.2

### Patch Changes

- [#1680](https://github.com/primer/css/pull/1680) [`f013be66`](https://github.com/primer/css/commit/f013be66db59d21d7e2315303b5582169c59c479) Thanks [@privatenumber](https://github.com/privatenumber)! - Fixing broken close span tag in the docs.

* [#1677](https://github.com/primer/css/pull/1677) [`cdb0faa6`](https://github.com/primer/css/commit/cdb0faa606e6fb35ea4a85dd3866bbb33131b76c) Thanks [@simurai](https://github.com/simurai)! - Lower contrast for disabled text

## 18.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@primer/css",
"version": "18.0.1",
"version": "18.0.2",
"description": "The CSS implementation of GitHub's Primer Design System",
"homepage": "https://primer.style/css",
"author": "GitHub, Inc.",
Expand Down Expand Up @@ -35,7 +35,7 @@
"storybook": "cd docs && yarn && yarn storybook"
},
"dependencies": {
"@primer/primitives": "^5.0.0"
"@primer/primitives": "^5.1.0"
},
"devDependencies": {
"@changesets/changelog-github": "0.4.1",
Expand Down
10 changes: 5 additions & 5 deletions src/buttons/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
&.disabled,
&[aria-disabled=true] {
cursor: default;

.octicon {
color: var(--color-fg-muted);
}
}

i {
Expand Down Expand Up @@ -96,9 +92,13 @@
&:disabled,
&.disabled,
&[aria-disabled=true] {
color: var(--color-fg-muted);
color: var(--color-primer-fg-disabled);
background-color: var(--color-btn-bg);
border-color: var(--color-btn-border);

.octicon {
color: var(--color-primer-fg-disabled);
}
}

// Keep :focus after :disabled. Allows to see the focus ring even on disabled buttons
Expand Down
7 changes: 4 additions & 3 deletions src/buttons/misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
&[aria-disabled=true] {
&,
&:hover {
color: var(--color-fg-muted);
color: var(--color-primer-fg-disabled);
cursor: default;
}
}
Expand Down Expand Up @@ -63,6 +63,7 @@
&:disabled,
&.disabled,
&[aria-disabled=true] {
color: var(--color-primer-fg-disabled);
background-color: transparent;
}
}
Expand All @@ -89,10 +90,10 @@

&.disabled,
&[aria-disabled=true] {
color: var(--color-fg-muted);
color: var(--color-primer-fg-disabled);
cursor: default;

&:hover { color: var(--color-fg-muted); }
&:hover { color: var(--color-primer-fg-disabled); }
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/forms/form-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ label {
}

&[disabled] {
color: var(--color-fg-muted);
color: var(--color-primer-fg-disabled);
background-color: var(--color-input-disabled-bg);
border-color: var(--color-border-default);

&::placeholder {
color: var(--color-primer-fg-disabled);
}
}

// Ensures inputs don't zoom on mobile iPhone but are body-font size on iPad
Expand Down
2 changes: 1 addition & 1 deletion src/pagination/pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
.gap:hover,
.disabled:hover,
[aria-disabled=true]:hover {
color: var(--color-fg-muted);
color: var(--color-primer-fg-disabled);
cursor: default;
border-color: transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/select-menu/select-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ $SelectMenu-max-height: 480px !default;

.SelectMenu-item:disabled,
.SelectMenu-item[aria-disabled=true] {
color: var(--color-fg-muted);
color: var(--color-primer-fg-disabled);
pointer-events: none;
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -968,10 +968,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@primer/primitives@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@primer/primitives/-/primitives-5.0.0.tgz#20e5e7aae0464093f4742f5947c332cbcbc68edd"
integrity sha512-g2omeDBgfE5Q6+BQxPaflz5/shCFNjPvfpzphQMpeqIeSrV9boFyicLq7/Rd3WdsDvIMIsMCC1lWZE9JyEhR3w==
"@primer/primitives@^5.1.0":
version "5.1.0"
resolved "https://registry.yarnpkg.com/@primer/primitives/-/primitives-5.1.0.tgz#698ad3a173f3a1d7090651cce0a7088e4b93da39"
integrity sha512-pW8DIh6rZV0/R7lxHnVRJ/tdN4kDVSpAtdcCecxKsvtgK5d9haekt3ERpM6i93xKwB5CJYy9ouuC9C0UqWPI0A==

"@primer/[email protected]":
version "12.0.1"
Expand Down

0 comments on commit 4fac859

Please sign in to comment.