Skip to content

Commit 7bebafd

Browse files
committed
UX improvements 3. The highlighting was making the text very hard to see in dark mode
1 parent 8b61f27 commit 7bebafd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@codifycli/ink-form",
33
"type": "module",
4-
"version": "0.0.10",
4+
"version": "0.0.11",
55
"description": "Complex user-friendly form component for Codify",
66
"main": "lib/index.js",
77
"exports": "./lib/index.js",

src/Form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const Form: React.FC<FormProps> = props => {
158158
{!editingField && (
159159
<Box flexDirection='column'>
160160
<Box marginLeft={1} marginTop={1}>
161-
<Text bold>{sections[currentTab].title}</Text>
161+
<Text bold backgroundColor='magentaBright'>{sections[currentTab].title}</Text>
162162
</Box>
163163
<Text>{' {'}</Text>
164164
</Box>

src/FormFieldRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const FormFieldRenderer: React.FC<FormFieldRendererProps<any>> = props =>
6464
return (
6565
<Box paddingX={1}>
6666
<Box flexGrow={1}>
67-
<Text backgroundColor={isFocused ? 'magentaBright' : undefined}>
67+
<Text >
6868
<Text>
6969
{`${isFocused ? '> ' : ' '}${(props.field.label ?? props.field.name)}`}
7070
</Text>

0 commit comments

Comments
 (0)