Skip to content

Commit

Permalink
Merge branch 'main' into pk/action-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
pksjce authored Feb 26, 2024
2 parents b9f08bd + e1dbd6a commit a1f5ca6
Show file tree
Hide file tree
Showing 9 changed files with 1,036 additions and 514 deletions.
6 changes: 6 additions & 0 deletions .changeset/young-bikes-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@primer/react": patch
---

Fix `placeholder` selector for form components

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
168 changes: 112 additions & 56 deletions packages/react/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,28 @@ exports[`snapshots renders a custom empty state message 1`] = `
cursor: pointer;
}
.c0::-webkit-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-webkit-input-placeholder,
.c0 textarea::-webkit-input-placeholder,
.c0 select::-webkit-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::-moz-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-moz-placeholder,
.c0 textarea::-moz-placeholder,
.c0 select::-moz-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:-ms-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input:-ms-input-placeholder,
.c0 textarea:-ms-input-placeholder,
.c0 select:-ms-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::placeholder,
.c0 textarea::placeholder,
.c0 select::placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:focus-within {
Expand Down Expand Up @@ -200,20 +208,28 @@ exports[`snapshots renders a loading state 1`] = `
cursor: pointer;
}
.c0::-webkit-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-webkit-input-placeholder,
.c0 textarea::-webkit-input-placeholder,
.c0 select::-webkit-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::-moz-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-moz-placeholder,
.c0 textarea::-moz-placeholder,
.c0 select::-moz-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:-ms-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input:-ms-input-placeholder,
.c0 textarea:-ms-input-placeholder,
.c0 select:-ms-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::placeholder,
.c0 textarea::placeholder,
.c0 select::placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:focus-within {
Expand Down Expand Up @@ -402,20 +418,28 @@ exports[`snapshots renders a menu that contains an item to add to the menu 1`] =
cursor: pointer;
}
.c0::-webkit-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-webkit-input-placeholder,
.c0 textarea::-webkit-input-placeholder,
.c0 select::-webkit-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::-moz-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-moz-placeholder,
.c0 textarea::-moz-placeholder,
.c0 select::-moz-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:-ms-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input:-ms-input-placeholder,
.c0 textarea:-ms-input-placeholder,
.c0 select:-ms-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::placeholder,
.c0 textarea::placeholder,
.c0 select::placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:focus-within {
Expand Down Expand Up @@ -1194,20 +1218,28 @@ exports[`snapshots renders a multiselect input 1`] = `
cursor: pointer;
}
.c0::-webkit-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-webkit-input-placeholder,
.c0 textarea::-webkit-input-placeholder,
.c0 select::-webkit-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::-moz-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-moz-placeholder,
.c0 textarea::-moz-placeholder,
.c0 select::-moz-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:-ms-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input:-ms-input-placeholder,
.c0 textarea:-ms-input-placeholder,
.c0 select:-ms-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::placeholder,
.c0 textarea::placeholder,
.c0 select::placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:focus-within {
Expand Down Expand Up @@ -1872,20 +1904,28 @@ exports[`snapshots renders a multiselect input with selected menu items 1`] = `
cursor: pointer;
}
.c0::-webkit-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-webkit-input-placeholder,
.c0 textarea::-webkit-input-placeholder,
.c0 select::-webkit-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::-moz-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-moz-placeholder,
.c0 textarea::-moz-placeholder,
.c0 select::-moz-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:-ms-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input:-ms-input-placeholder,
.c0 textarea:-ms-input-placeholder,
.c0 select:-ms-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::placeholder,
.c0 textarea::placeholder,
.c0 select::placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:focus-within {
Expand Down Expand Up @@ -2701,20 +2741,28 @@ exports[`snapshots renders a single select input 1`] = `
cursor: pointer;
}
.c0::-webkit-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-webkit-input-placeholder,
.c0 textarea::-webkit-input-placeholder,
.c0 select::-webkit-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::-moz-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-moz-placeholder,
.c0 textarea::-moz-placeholder,
.c0 select::-moz-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:-ms-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input:-ms-input-placeholder,
.c0 textarea:-ms-input-placeholder,
.c0 select:-ms-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::placeholder,
.c0 textarea::placeholder,
.c0 select::placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:focus-within {
Expand Down Expand Up @@ -3731,20 +3779,28 @@ exports[`snapshots renders with an input value 1`] = `
cursor: pointer;
}
.c0::-webkit-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-webkit-input-placeholder,
.c0 textarea::-webkit-input-placeholder,
.c0 select::-webkit-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::-moz-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::-moz-placeholder,
.c0 textarea::-moz-placeholder,
.c0 select::-moz-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:-ms-input-placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input:-ms-input-placeholder,
.c0 textarea:-ms-input-placeholder,
.c0 select:-ms-input-placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0::placeholder {
color: var(--fgColor-muted,var(--color-fg-subtle,#6e7781));
.c0 input::placeholder,
.c0 textarea::placeholder,
.c0 select::placeholder {
color: var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));
}
.c0:focus-within {
Expand Down
Loading

0 comments on commit a1f5ca6

Please sign in to comment.