diff --git a/.changeset/fuzzy-kiwis-greet.md b/.changeset/fuzzy-kiwis-greet.md new file mode 100644 index 00000000000..add8f612574 --- /dev/null +++ b/.changeset/fuzzy-kiwis-greet.md @@ -0,0 +1,5 @@ +--- +"@primer/react": minor +--- + +Fix small TextInput to be the use the correct font size diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-colorblind-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-colorblind-linux.png index c420cd91393..82a757d1cac 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-colorblind-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-dimmed-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-dimmed-linux.png index 40d32effc6f..deb50c64999 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-dimmed-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-high-contrast-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-high-contrast-linux.png index 5ba57dc6a85..50c08345dad 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-high-contrast-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-linux.png index c420cd91393..82a757d1cac 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-linux.png differ diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-tritanopia-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-tritanopia-linux.png index c420cd91393..82a757d1cac 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-tritanopia-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-colorblind-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-colorblind-linux.png index 7aaefcb553d..020ba25948b 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-colorblind-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-high-contrast-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-high-contrast-linux.png index 87271029fdd..6e6b6bda199 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-high-contrast-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-linux.png index 7aaefcb553d..020ba25948b 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-linux.png differ diff --git a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-tritanopia-linux.png b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-tritanopia-linux.png index 7aaefcb553d..020ba25948b 100644 Binary files a/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-tritanopia-linux.png and b/.playwright/snapshots/components/Select.test.ts-snapshots/Select-Small-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Small-dark-high-contrast-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Small-dark-high-contrast-linux.png index ef480436f25..cef4b87359b 100644 Binary files a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Small-dark-high-contrast-linux.png and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Small-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Small-light-high-contrast-linux.png b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Small-light-high-contrast-linux.png index 04465ff0cc1..78407f49e11 100644 Binary files a/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Small-light-high-contrast-linux.png and b/.playwright/snapshots/components/TextInput.test.ts-snapshots/TextInput-Small-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInputWithTokens.test.ts-snapshots/TextInputWithTokens-Size-dark-high-contrast-linux.png b/.playwright/snapshots/components/TextInputWithTokens.test.ts-snapshots/TextInputWithTokens-Size-dark-high-contrast-linux.png index d846b4fbc76..f55f5739a92 100644 Binary files a/.playwright/snapshots/components/TextInputWithTokens.test.ts-snapshots/TextInputWithTokens-Size-dark-high-contrast-linux.png and b/.playwright/snapshots/components/TextInputWithTokens.test.ts-snapshots/TextInputWithTokens-Size-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/TextInputWithTokens.test.ts-snapshots/TextInputWithTokens-Size-light-high-contrast-linux.png b/.playwright/snapshots/components/TextInputWithTokens.test.ts-snapshots/TextInputWithTokens-Size-light-high-contrast-linux.png index 87cc80fd5bb..2528f9b8115 100644 Binary files a/.playwright/snapshots/components/TextInputWithTokens.test.ts-snapshots/TextInputWithTokens-Size-light-high-contrast-linux.png and b/.playwright/snapshots/components/TextInputWithTokens.test.ts-snapshots/TextInputWithTokens-Size-light-high-contrast-linux.png differ diff --git a/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap b/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap index 2c67fb764da..36f7ae4f8bc 100644 --- a/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap +++ b/packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap @@ -1658,6 +1658,18 @@ exports[`TextInput renders small 1`] = ` } } +@media screen and (min-width:544px) { + .c0 { + font-size: 12px; + } +} + +@media screen and (min-width:768px) { + .c0 { + font-size: 12px; + } +} +