diff --git a/.changeset/stale-toes-happen.md b/.changeset/stale-toes-happen.md new file mode 100644 index 0000000..5d8471e --- /dev/null +++ b/.changeset/stale-toes-happen.md @@ -0,0 +1,5 @@ +--- +'@sweatpants/react': patch +--- + +Fix Select trigger sm font-size diff --git a/package-lock.json b/package-lock.json index de349b3..3cc92f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2795,6 +2795,23 @@ "node": ">=12" } }, + "node_modules/@sweatpants/libra/node_modules/@sweatpants/react": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@sweatpants/react/-/react-0.7.5.tgz", + "integrity": "sha512-Iz+5DppDPc8I7kQJhU53IfdYCeD/5IvjLfrAV+vMLdoCPd8HjgOVDEQS5Klnv2yhIkTX1h9L8BnGcWmBLDDuLg==", + "dev": true, + "dependencies": { + "@radix-ui/react-dialog": "1.0.4", + "@radix-ui/react-select": "1.2.2", + "@radix-ui/react-slot": "1.0.2", + "@react-hook/resize-observer": "1.2.6", + "framer-motion": "10.16.4" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/@sweatpants/libra/node_modules/esbuild": { "version": "0.19.3", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.3.tgz", @@ -12116,7 +12133,7 @@ }, "packages/panda-preset": { "name": "@sweatpants/panda-preset", - "version": "0.7.0", + "version": "0.7.1", "license": "MIT", "dependencies": { "@pandacss/dev": "0.15.5" @@ -12128,7 +12145,7 @@ }, "packages/react": { "name": "@sweatpants/react", - "version": "0.7.5", + "version": "0.7.8", "license": "MIT", "dependencies": { "@radix-ui/react-dialog": "1.0.4", @@ -12139,7 +12156,7 @@ }, "devDependencies": { "@pandacss/dev": "0.15.5", - "@sweatpants/panda-preset": "0.7.0" + "@sweatpants/panda-preset": "0.7.1" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/packages/react/src/select/Select.tsx b/packages/react/src/select/Select.tsx index 3eb37cf..c48d483 100644 --- a/packages/react/src/select/Select.tsx +++ b/packages/react/src/select/Select.tsx @@ -61,7 +61,7 @@ const triggerStyles = cva({ lineHeight: 'calc(2.5rem - 2px)' }, md: { fontSize: '4', paddingX: '4', lineHeight: 'calc(2rem - 2px)' }, - sm: { fontSize: '2', paddingX: '4', lineHeight: 'calc(1.75rem - 2px)' } + sm: { fontSize: '3', paddingX: '4', lineHeight: 'calc(1.75rem - 2px)' } }, kind: { neutral: {