Skip to content

Commit 1b809c2

Browse files
committed
Revert "Revert "Merge branch 'main' of github.com:primer/react into api/actionlist-trailing-visual""
This reverts commit dcf693f.
1 parent 28b5980 commit 1b809c2

19 files changed

+62
-28
lines changed

.changeset/violet-cougars-yawn.md

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check for changeset
2+
3+
on:
4+
pull_request:
5+
types:
6+
# On by default if you specify no types.
7+
- "opened"
8+
- "reopened"
9+
- "synchronize"
10+
# For `skip-label` only.
11+
- "labeled"
12+
- "unlabeled"
13+
14+
jobs:
15+
check-for-changeset:
16+
name: Check for changeset
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: "Check for changeset"
21+
uses: brettcannon/check-for-changed-files@v1
22+
with:
23+
file-pattern: ".changeset/*.md"
24+
skip-label: "skip changeset"
25+
failure-message: "No changeset found. If these changes should not result in a new version, apply the ${skip-label} label to this pull request. If these changes should result in a version bump, please add a changeset https://git.io/J6QvQ"

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @primer/components
22

3+
## 31.0.0
4+
5+
### Major Changes
6+
7+
- [#1514](https://github.com/primer/react/pull/1514) [`dc789025`](https://github.com/primer/react/commit/dc789025d4976e2f0863e1f377c4a834aab88e3a) Thanks [@colebemis](https://github.com/colebemis)! - Remove deprecated color variables by upgrading to @primer/primitives [v5](https://github.com/primer/primitives/pull/251)
8+
9+
**Note:** Install [`eslint-plugin-primer-react`](https://primer.style/react/linting) to ensure that you're not using any deprecated or removed color variables.
10+
11+
### Patch Changes
12+
13+
- [#1512](https://github.com/primer/react/pull/1512) [`1e5ac406`](https://github.com/primer/react/commit/1e5ac406f8558a20248157a9bfe13ee4709890c8) Thanks [@pksjce](https://github.com/pksjce)! - Change disabled color from muted to custom primer disabled color
14+
315
## 30.3.0
416

517
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@primer/components",
3-
"version": "30.3.0",
3+
"version": "31.0.0",
44
"description": "Primer react components",
55
"main": "lib/index.js",
66
"module": "lib-esm/index.js",

src/ActionList/Item.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ export interface ItemProps extends SxProp {
153153
const getItemVariant = (variant = 'default', disabled?: boolean) => {
154154
if (disabled) {
155155
return {
156-
color: get('colors.fg.muted'),
157-
iconColor: get('colors.fg.muted'),
158-
annotationColor: get('colors.fg.muted'),
156+
color: get('colors.primer.fg.disabled'),
157+
iconColor: get('colors.primer.fg.disabled'),
158+
annotationColor: get('colors.primer.fg.disabled'),
159159
hoverCursor: 'default'
160160
}
161161
}

src/Button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Button = styled(ButtonBase)<ButtonBaseProps & ButtonSystemProps & SxProp>`
2727
}
2828
2929
&:disabled {
30-
color: ${get('colors.fg.muted')};
30+
color: ${get('colors.primer.fg.disabled')};
3131
background-color: ${get('colors.btn.bg')};
3232
border-color: ${get('colors.btn.border')};
3333
}

src/Button/ButtonTableList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const ButtonTableList = styled.summary<StyledButtonTableListProps>`
3333
&:disabled {
3434
&,
3535
&:hover {
36-
color: rgba(${get('colors.fg.muted')}, 0.5);
36+
color: ${get('colors.primer.fg.disabled')};
3737
cursor: default;
3838
}
3939
}

src/Pagination/Pagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const Page = styled.a`
5555
5656
&[aria-disabled],
5757
&[aria-disabled]:hover {
58-
color: ${get('colors.fg.muted')}; // check
58+
color: ${get('colors.primer.fg.disabled')}; // check
5959
cursor: default;
6060
border-color: transparent;
6161
}

src/_TextInputWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const TextInputWrapper = styled.span<StyledWrapperProps>`
7979
${props =>
8080
props.disabled &&
8181
css`
82-
color: ${get('colors.fg.muted')};
82+
color: ${get('colors.primer.fg.disabled')};
8383
background-color: ${get('colors.input.disabledBg')};
8484
border-color: ${get('colors.border.default')};
8585
`}

src/__tests__/Pagination/__snapshots__/Pagination.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ exports[`Pagination renders consistently 1`] = `
6161
6262
.c2[aria-disabled],
6363
.c2[aria-disabled]:hover {
64-
color: #57606a;
64+
color: #8c959f;
6565
cursor: default;
6666
border-color: transparent;
6767
}

0 commit comments

Comments
 (0)