Skip to content

Commit 2aa5021

Browse files
committed
Move typography reset to html
1 parent e855198 commit 2aa5021

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

packages/react-sdk/src/core-components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const rootMeta: WsComponentMeta = {
1717
label: "Global Root",
1818
icon: EmbedIcon,
1919
presetStyle: {
20-
html: [...html],
20+
html,
2121
},
2222
};
2323

packages/sdk/src/__generated__/normalize.css.ts

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sdk/src/normalize.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,26 @@ span {
6060
outline-width: 1px;
6161
}
6262

63+
/**
64+
* 1. Layout source https://twitter.com/ChallengesCss/status/1471128244720181258
65+
* 2. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
66+
*/
6367
html {
64-
/* Layout source https://twitter.com/ChallengesCss/status/1471128244720181258 */
68+
/* 1 */
6569
display: grid;
6670
min-height: 100%;
71+
/* 2 */
72+
font-family: Arial, Roboto, sans-serif;
73+
font-size: 16px;
74+
line-height: 1.2;
6775
}
6876

6977
/**
7078
* 1. Remove the margin in all browsers.
71-
* 2. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
7279
*/
7380
body {
7481
/* 1 */
7582
margin: 0;
76-
/* 2 */
77-
font-family: Arial, Roboto, sans-serif;
78-
font-size: 16px;
79-
line-height: 1.2;
8083
/* webstudio custom opinionated presets */
8184
box-sizing: border-box;
8285
border-width: 1px;

0 commit comments

Comments
 (0)