Skip to content

Commit c0fa388

Browse files
committed
fix light themes
1 parent 70684db commit c0fa388

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/AddFont/FontPicker/List.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type Props = {
99
expanded: boolean;
1010
};
1111

12-
const FontList: FunctionComponent<Props> = ({
12+
export const FontList: FunctionComponent<Props> = ({
1313
fonts,
1414
onSelection,
1515
activeFontFamily,
@@ -56,5 +56,3 @@ const FontList: FunctionComponent<Props> = ({
5656
</>
5757
);
5858
};
59-
60-
export default FontList;

packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/AddFont/FontPicker/elements.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ export const SelectedFont = styled.button<{ done?: boolean }>`
103103
css`
104104
:after {
105105
content: '';
106-
background-image: url("data:image/svg+xml,%3Csvg width='7' height='4' viewBox='0 0 7 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.50007 4L1.27146e-07 1.35122e-07L7 -4.76837e-07L3.50007 4Z' fill='white'/%3E%3C/svg%3E%0A");
106+
background-image: url("${`data:image/svg+xml,%3Csvg width='7' height='4' viewBox='0 0 7 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.50007 4L1.27146e-07 1.35122e-07L7 -4.76837e-07L3.50007 4Z' fill='${
107+
props.theme.light ? 'black' : 'white'
108+
}'/%3E%3C/svg%3E%0A`}");
107109
width: 7px;
108110
height: 4px;
109111
position: absolute;

packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/AddFont/FontPicker/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import React, { useState, useEffect } from 'react';
88
import OutsideClickHandler from 'react-outside-click-handler';
99
import { SelectedFont } from './elements';
10-
import FontList from './List';
10+
import { FontList } from './List';
1111

1212
export const FontPicker = ({
1313
activeFontFamily = FONT_FAMILY_DEFAULT,

0 commit comments

Comments
 (0)