Skip to content

Commit 9bd7a9c

Browse files
authored
Merge pull request #8 from stoplightio/SL-1905/icon-size
style(icon): change icon size to fontsize
2 parents 7a8cf05 + bf16160 commit 9bd7a9c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"test.watch": "yarn test --watch"
3636
},
3737
"peerDependencies": {
38-
"@stoplight/ui-kit": ">=1.27",
38+
"@stoplight/ui-kit": ">=1.46",
3939
"react": ">=16.7.0-alpha.1",
4040
"react-dom": ">=16.7.0-alpha.1"
4141
},

src/renderers/__tests__/__snapshots__/renderSchema.func.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Array [
7676
width="1rem"
7777
>
7878
<Unknown
79+
fontSize="1em"
7980
icon={
8081
Object {
8182
"icon": Array [
@@ -89,7 +90,6 @@ Array [
8990
"prefix": "fas",
9091
}
9192
}
92-
size="1x"
9393
/>
9494
</Unknown>
9595
<ForwardRef
@@ -160,6 +160,7 @@ Array [
160160
width="1rem"
161161
>
162162
<Unknown
163+
fontSize="1em"
163164
icon={
164165
Object {
165166
"icon": Array [
@@ -173,7 +174,6 @@ Array [
173174
"prefix": "fas",
174175
}
175176
}
176-
size="1x"
177177
/>
178178
</Unknown>
179179
<ForwardRef
@@ -361,6 +361,7 @@ Array [
361361
width="1rem"
362362
>
363363
<Unknown
364+
fontSize="1em"
364365
icon={
365366
Object {
366367
"icon": Array [
@@ -374,7 +375,6 @@ Array [
374375
"prefix": "fas",
375376
}
376377
}
377-
size="1x"
378378
/>
379379
</Unknown>
380380
<ForwardRef

src/renderers/renderProp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export const renderProp = ({
181181
>
182182
{expandable ? (
183183
<Flex justifyContent="center" pl="0.5rem" mr="0.5rem" ml="-1.5rem" width="1rem">
184-
<Icon size="1x" icon={expanded ? faCaretDown : faCaretRight} />
184+
<Icon fontSize="1em" icon={expanded ? faCaretDown : faCaretRight} />
185185
</Flex>
186186
) : null}
187187

0 commit comments

Comments
 (0)