Skip to content

Commit 4374cd4

Browse files
authored
TabController - move to design tokens (#1850)
* TabController - move to design tokens * Fix
1 parent 3949bce commit 4374cd4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/tabController/TabBar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {orientations} from '../../commons/Constants';
1515
import {useDidUpdate} from 'hooks';
1616

1717
const DEFAULT_HEIGHT = 48;
18-
const DEFAULT_BACKGROUND_COLOR = Colors.white;
18+
const DEFAULT_BACKGROUND_COLOR = Colors.$backgroundElevated;
1919

2020
const DEFAULT_LABEL_STYLE = {
2121
...Typography.text80M,
@@ -323,19 +323,19 @@ const styles = StyleSheet.create({
323323
left: 0,
324324
width: 70,
325325
height: 2,
326-
backgroundColor: Colors.primary
326+
backgroundColor: Colors.$backgroundPrimaryHeavy
327327
},
328328
containerShadow: {
329329
...Platform.select({
330330
ios: {
331-
shadowColor: Colors.grey10,
331+
shadowColor: Colors.black,
332332
shadowOpacity: 0.05,
333333
shadowRadius: 2,
334334
shadowOffset: {height: 6, width: 0}
335335
},
336336
android: {
337337
elevation: 5,
338-
backgroundColor: Colors.white
338+
backgroundColor: Colors.$backgroundElevated
339339
}
340340
})
341341
},

src/components/tabController/TabBarItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import TabBarContext from './TabBarContext';
1010

1111
const TouchableOpacity = Reanimated.createAnimatedComponent(_TouchableOpacity);
1212

13-
const DEFAULT_LABEL_COLOR = Colors.black;
14-
const DEFAULT_SELECTED_LABEL_COLOR = Colors.primary;
13+
const DEFAULT_LABEL_COLOR = Colors.$textDefault;
14+
const DEFAULT_SELECTED_LABEL_COLOR = Colors.$textPrimary;
1515

1616
export interface TabControllerItemProps {
1717
/**
@@ -212,7 +212,7 @@ export default function TabBarItem({
212212
</Reanimated.Text>
213213
)}
214214
{badge && (
215-
<Badge backgroundColor={Colors.red30} size={20} {...badge} containerStyle={styles.badge}/>
215+
<Badge backgroundColor={Colors.$backgroundDangerHeavy} size={20} {...badge} containerStyle={styles.badge}/>
216216
)}
217217
{trailingAccessory}
218218
</TouchableOpacity>

0 commit comments

Comments
 (0)