Skip to content

Commit

Permalink
Update CodeSnippet styles and instructions schema
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelRajodiya committed May 28, 2024
1 parent 3d870c5 commit 0310d83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/components/CodeSnippet/CodeSnippet.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
margin: 0.5rem 0;
border: 1px solid var(--border-color);
border-radius: calc(var(--border-radius) / 2);
background-color: transparent !important;
}
.inlineCode {
padding: 2px 4px;
Expand Down
2 changes: 1 addition & 1 deletion app/components/CodeSnippet/CodeSnippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function CodeSnippet({
lineNumber <= highlightLineEnd
) {
style = {
backgroundColor: "#00ff002f",
backgroundColor: "#00ff0023",
};
}
return { style };
Expand Down
6 changes: 3 additions & 3 deletions content/01-introduction/02-Arrays/instructions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords: "$schema, $id, type, array, items, string, number"

In the previous step, we have learned to define an object schema with properties using the `properties` keyword.

and added properties of `string` and `number` data types to the schema.
and added two properties with `string` and `number` data types to the schema.

We will continue with the Employee schema and add a new property `skills` which is an **array of strings**.

Expand Down Expand Up @@ -40,7 +40,7 @@ We will continue with the Employee schema and add a new property `skills` which
You are given an incomplete schema for this data in the editor. using the above schema as a reference,

add `skills` property to the schema
add definition `skills` property to the schema

<GoodToKnowBox>
When you use json schema with an implementer, you might encounter `$schema` keyword. This keyword is used to specify the version of the JSON Schema standard that the schema is written in.
Expand All @@ -54,7 +54,7 @@ add `skills` property to the schema
}
```

The above schema is written in the JSON Schema draft 2020-12 standard. For the rest of the tour we will use the latest JSON Schema draft 2020-12 standard and we are not going to include `$schema` keyword in the schema for simplicity.
The above schema is written in the JSON Schema draft 2020-12 standard. For the rest of the tour we will use the latest JSON Schema **draft 2020-12 standard** and we are not going to include `$schema` keyword in the schema for simplicity.


</GoodToKnowBox>

0 comments on commit 0310d83

Please sign in to comment.