From 538ffc5094f3f3e082b8842af2f1b495ebacd5e2 Mon Sep 17 00:00:00 2001 From: G3N Date: Mon, 26 Sep 2022 22:11:36 +0900 Subject: [PATCH 1/2] [docs] Text - update inherit demo to have consistency between example and code example --- .../src/demos/core/Text/Text.demo.inherit.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mantine-demos/src/demos/core/Text/Text.demo.inherit.tsx b/src/mantine-demos/src/demos/core/Text/Text.demo.inherit.tsx index dbdc54da7f1..5c46fdcf684 100644 --- a/src/mantine-demos/src/demos/core/Text/Text.demo.inherit.tsx +++ b/src/mantine-demos/src/demos/core/Text/Text.demo.inherit.tsx @@ -5,7 +5,13 @@ const code = ` import { Text, Title } from '@mantine/core'; function Demo() { - return Highlight <Text color="blue" inherit component="span">something</Text>in title; + return + Title in which you want to + <Text color="blue" inherit component="span"> + highlight + </Text> + something + ; } `; From dc198140ec85b872847adee91399727def66b750 Mon Sep 17 00:00:00 2001 From: G3N Date: Tue, 27 Sep 2022 08:09:15 +0900 Subject: [PATCH 2/2] updated demo code format --- .tool-versions | 1 + .../src/demos/core/Text/Text.demo.inherit.tsx | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) create mode 100644 .tool-versions diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000000..826ccf4fef0 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 16.15.0 diff --git a/src/mantine-demos/src/demos/core/Text/Text.demo.inherit.tsx b/src/mantine-demos/src/demos/core/Text/Text.demo.inherit.tsx index 5c46fdcf684..fd5a0bc1a1f 100644 --- a/src/mantine-demos/src/demos/core/Text/Text.demo.inherit.tsx +++ b/src/mantine-demos/src/demos/core/Text/Text.demo.inherit.tsx @@ -5,13 +5,7 @@ const code = ` import { Text, Title } from '@mantine/core'; function Demo() { - return - Title in which you want to - <Text color="blue" inherit component="span"> - highlight - </Text> - something - ; + return Title in which you want to <Text color="blue" inherit component="span">highlight</Text> something; } `;