@sanity/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/primitives/code/styles.ts +6 -0
- package/src/primitives/heading/styles.ts +6 -0
- package/src/primitives/label/styles.ts +6 -0
- package/src/primitives/text/styles.ts +6 -0
package/package.json
CHANGED
|
@@ -63,6 +63,12 @@ export function codeBaseStyle(): FlattenInterpolation<StyledThemeProps<Theme>> {
|
|
|
63
63
|
border-radius: 1px;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
& svg {
|
|
67
|
+
/* Certain popular CSS libraries changes the defaults for SVG display */
|
|
68
|
+
/* Make sure SVGs are rendered as inline elements */
|
|
69
|
+
display: inline;
|
|
70
|
+
}
|
|
71
|
+
|
|
66
72
|
& [data-sanity-icon] {
|
|
67
73
|
vertical-align: baseline;
|
|
68
74
|
}
|
|
@@ -44,6 +44,12 @@ export function headingBaseStyle(
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
& svg {
|
|
48
|
+
/* Certain popular CSS libraries changes the defaults for SVG display */
|
|
49
|
+
/* Make sure SVGs are rendered as inline elements */
|
|
50
|
+
display: inline;
|
|
51
|
+
}
|
|
52
|
+
|
|
47
53
|
& [data-sanity-icon] {
|
|
48
54
|
vertical-align: baseline;
|
|
49
55
|
}
|
|
@@ -30,6 +30,12 @@ export function labelBaseStyle(
|
|
|
30
30
|
border-radius: 1px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
& svg {
|
|
34
|
+
/* Certain popular CSS libraries changes the defaults for SVG display */
|
|
35
|
+
/* Make sure SVGs are rendered as inline elements */
|
|
36
|
+
display: inline;
|
|
37
|
+
}
|
|
38
|
+
|
|
33
39
|
& [data-sanity-icon] {
|
|
34
40
|
vertical-align: baseline;
|
|
35
41
|
}
|
|
@@ -52,6 +52,12 @@ export function textBaseStyle(
|
|
|
52
52
|
font-weight: ${weights.bold};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
& svg {
|
|
56
|
+
/* Certain popular CSS libraries changes the defaults for SVG display */
|
|
57
|
+
/* Make sure SVGs are rendered as inline elements */
|
|
58
|
+
display: inline;
|
|
59
|
+
}
|
|
60
|
+
|
|
55
61
|
& [data-sanity-icon] {
|
|
56
62
|
vertical-align: baseline;
|
|
57
63
|
}
|