Skip to content

Commit ff7ce73

Browse files
authored
Dividers - turn to getters. TextFiledScreen - fix titles color (#2814)
* Dividers - turn to getters. TextFiledScreen - fix titles color * remove default text color
1 parent 4e9d66d commit ff7ce73

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

demo/src/screens/componentScreens/TextFieldScreen.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ export default class TextFieldScreen extends Component {
5656
<ScrollView keyboardShouldPersistTaps="always">
5757
<View flex padding-page>
5858
<Text h1>TextField</Text>
59-
<Text h3 blue50 marginV-s4>
59+
<Text h3 marginV-s4>
6060
Default
6161
</Text>
6262
{/* @ts-expect-error */}
6363
<TextField ref={this.input} label="Name" placeholder="Enter full name"/>
6464

65-
<Text h3 blue50 marginV-s4>
65+
<Text h3 marginV-s4>
6666
Static vs Floating Placeholder
6767
</Text>
6868
<View row bottom>
@@ -84,7 +84,7 @@ export default class TextFieldScreen extends Component {
8484
fieldStyle={styles.withUnderline}
8585
/>
8686
</View>
87-
<Text h3 blue50 marginV-s4>
87+
<Text h3 marginV-s4>
8888
Accessories
8989
</Text>
9090

@@ -128,7 +128,7 @@ export default class TextFieldScreen extends Component {
128128
/>
129129

130130
<View row marginV-s4 spread>
131-
<Text h3 blue50>
131+
<Text h3>
132132
Validation
133133
</Text>
134134

@@ -185,7 +185,7 @@ export default class TextFieldScreen extends Component {
185185
</View>
186186

187187
<View row centerV spread>
188-
<Text h3 blue50 marginV-s4>
188+
<Text h3 marginV-s4>
189189
Colors By State
190190
</Text>
191191
<View row>
@@ -222,7 +222,7 @@ export default class TextFieldScreen extends Component {
222222
/>
223223

224224
<View row spread centerV>
225-
<Text h3 blue50 marginV-s4>
225+
<Text h3 marginV-s4>
226226
Custom Field Style
227227
</Text>
228228
<Button
@@ -243,7 +243,7 @@ export default class TextFieldScreen extends Component {
243243
readonly={isReadonly}
244244
/>
245245

246-
<Text h3 blue50 marginV-s4>
246+
<Text h3 marginV-s4>
247247
Char Counter
248248
</Text>
249249

@@ -261,7 +261,7 @@ export default class TextFieldScreen extends Component {
261261
maxLength={20}
262262
fieldStyle={styles.withFrame}
263263
/>
264-
<Text h3 blue50 marginV-s4>
264+
<Text h3 marginV-s4>
265265
Hint
266266
</Text>
267267
<TextField
@@ -270,7 +270,7 @@ export default class TextFieldScreen extends Component {
270270
hint="1-6 chars including numeric chars"
271271
fieldStyle={styles.withUnderline}
272272
/>
273-
<Text h3 blue50 marginV-s4>
273+
<Text h3 marginV-s4>
274274
Formatter
275275
</Text>
276276
<TextField
@@ -290,7 +290,7 @@ export default class TextFieldScreen extends Component {
290290
fieldStyle={styles.withUnderline}
291291
/>
292292

293-
<Text h3 blue50 marginV-s4>
293+
<Text h3 marginV-s4>
294294
Custom Alignments
295295
</Text>
296296

src/style/dividers.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import Colors from './colors';
22

33
const Dividers = {
4-
d10: {
5-
borderBottomWidth: 1,
6-
borderColor: Colors.$outlineDefault
4+
get d10() {
5+
return {
6+
borderBottomWidth: 1,
7+
borderColor: Colors.$outlineDefault
8+
};
79
},
8-
d20: {
9-
borderBottomWidth: 8,
10-
borderColor: Colors.$outlineDefault
10+
get d20() {
11+
return {
12+
borderBottomWidth: 8,
13+
borderColor: Colors.$outlineDefault
14+
};
1115
}
1216
};
1317

0 commit comments

Comments
 (0)