From c5bc62ad67ca47cbfed6a786238a6c5a9bb02ce7 Mon Sep 17 00:00:00 2001 From: young <97073795+ANUGLYPLUGIN@users.noreply.github.com> Date: Sat, 20 Jan 2024 01:07:04 +0800 Subject: [PATCH] [base-ui][TextareaAutosize] Add border-box to demo (#40646) --- docs/data/base/components/textarea-autosize/EmptyTextarea.js | 1 + docs/data/base/components/textarea-autosize/EmptyTextarea.tsx | 1 + .../data/base/components/textarea-autosize/MaxHeightTextarea.js | 1 + .../base/components/textarea-autosize/MaxHeightTextarea.tsx | 1 + .../data/base/components/textarea-autosize/MinHeightTextarea.js | 1 + .../base/components/textarea-autosize/MinHeightTextarea.tsx | 1 + .../components/textarea-autosize/UnstyledTextarea/css/index.js | 1 + .../components/textarea-autosize/UnstyledTextarea/css/index.tsx | 1 + .../textarea-autosize/UnstyledTextarea/system/index.js | 1 + .../textarea-autosize/UnstyledTextarea/system/index.tsx | 1 + .../textarea-autosize/UnstyledTextarea/tailwind/index.js | 2 +- .../textarea-autosize/UnstyledTextarea/tailwind/index.tsx | 2 +- .../UnstyledTextarea/tailwind/index.tsx.preview | 2 +- .../textarea-autosize/UnstyledTextareaIntroduction/css/index.js | 1 + .../UnstyledTextareaIntroduction/css/index.tsx | 1 + .../UnstyledTextareaIntroduction/system/index.js | 1 + .../UnstyledTextareaIntroduction/system/index.tsx | 1 + .../UnstyledTextareaIntroduction/tailwind/index.js | 2 +- .../UnstyledTextareaIntroduction/tailwind/index.tsx | 2 +- .../UnstyledTextareaIntroduction/tailwind/index.tsx.preview | 2 +- 20 files changed, 20 insertions(+), 6 deletions(-) diff --git a/docs/data/base/components/textarea-autosize/EmptyTextarea.js b/docs/data/base/components/textarea-autosize/EmptyTextarea.js index 0b4d410b78b157..6f4adc9941067d 100644 --- a/docs/data/base/components/textarea-autosize/EmptyTextarea.js +++ b/docs/data/base/components/textarea-autosize/EmptyTextarea.js @@ -27,6 +27,7 @@ export default function EmptyTextarea() { const Textarea = styled(BaseTextareaAutosize)( ({ theme }) => ` + box-sizing: border-box; width: 320px; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.875rem; diff --git a/docs/data/base/components/textarea-autosize/EmptyTextarea.tsx b/docs/data/base/components/textarea-autosize/EmptyTextarea.tsx index 0b4d410b78b157..6f4adc9941067d 100644 --- a/docs/data/base/components/textarea-autosize/EmptyTextarea.tsx +++ b/docs/data/base/components/textarea-autosize/EmptyTextarea.tsx @@ -27,6 +27,7 @@ export default function EmptyTextarea() { const Textarea = styled(BaseTextareaAutosize)( ({ theme }) => ` + box-sizing: border-box; width: 320px; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.875rem; diff --git a/docs/data/base/components/textarea-autosize/MaxHeightTextarea.js b/docs/data/base/components/textarea-autosize/MaxHeightTextarea.js index f3423480f17356..94b8511fa2a176 100644 --- a/docs/data/base/components/textarea-autosize/MaxHeightTextarea.js +++ b/docs/data/base/components/textarea-autosize/MaxHeightTextarea.js @@ -27,6 +27,7 @@ export default function MaxHeightTextarea() { const Textarea = styled(BaseTextareaAutosize)( ({ theme }) => ` + box-sizing: border-box; width: 320px; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.875rem; diff --git a/docs/data/base/components/textarea-autosize/MaxHeightTextarea.tsx b/docs/data/base/components/textarea-autosize/MaxHeightTextarea.tsx index f3423480f17356..94b8511fa2a176 100644 --- a/docs/data/base/components/textarea-autosize/MaxHeightTextarea.tsx +++ b/docs/data/base/components/textarea-autosize/MaxHeightTextarea.tsx @@ -27,6 +27,7 @@ export default function MaxHeightTextarea() { const Textarea = styled(BaseTextareaAutosize)( ({ theme }) => ` + box-sizing: border-box; width: 320px; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.875rem; diff --git a/docs/data/base/components/textarea-autosize/MinHeightTextarea.js b/docs/data/base/components/textarea-autosize/MinHeightTextarea.js index d241bf3985ad83..ed21fd8b460277 100644 --- a/docs/data/base/components/textarea-autosize/MinHeightTextarea.js +++ b/docs/data/base/components/textarea-autosize/MinHeightTextarea.js @@ -27,6 +27,7 @@ export default function MinHeightTextarea() { const Textarea = styled(BaseTextareaAutosize)( ({ theme }) => ` + box-sizing: border-box; width: 320px; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.875rem; diff --git a/docs/data/base/components/textarea-autosize/MinHeightTextarea.tsx b/docs/data/base/components/textarea-autosize/MinHeightTextarea.tsx index d241bf3985ad83..ed21fd8b460277 100644 --- a/docs/data/base/components/textarea-autosize/MinHeightTextarea.tsx +++ b/docs/data/base/components/textarea-autosize/MinHeightTextarea.tsx @@ -27,6 +27,7 @@ export default function MinHeightTextarea() { const Textarea = styled(BaseTextareaAutosize)( ({ theme }) => ` + box-sizing: border-box; width: 320px; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.875rem; diff --git a/docs/data/base/components/textarea-autosize/UnstyledTextarea/css/index.js b/docs/data/base/components/textarea-autosize/UnstyledTextarea/css/index.js index 3315ed8fd72393..440547ea287079 100644 --- a/docs/data/base/components/textarea-autosize/UnstyledTextarea/css/index.js +++ b/docs/data/base/components/textarea-autosize/UnstyledTextarea/css/index.js @@ -53,6 +53,7 @@ function Styles() {