“tabs component" tabBarStyle set 'font-size' can't work
See original GitHub issueVersion
2.13.11
Environment
mac 10.13.2(macos high sierra)and safari \chrome
Reproduction link
https://ant.design/components/tabs-cn/
Steps to reproduce
https://ant.design/components/tabs-cn/ ` <Tabs defaultActiveKey=“1” onChange={callback} tabBarStyle={{fontSize: 22, ‘font-size’: ‘22px’}}>
<TabPane tab="Tab 1" key="1">Content of Tab Pane 1</TabPane>
<TabPane tab="Tab 2" key="2">Content of Tab Pane 2</TabPane>
<TabPane tab="Tab 3" key="3">Content of Tab Pane 3</TabPane>
</Tabs>
`
tabs components can’t work because
&-nav-container { at line 32 set "font-size: @tabs-title-font-size;",
What is expected?
cat set font-size effect tabbar font-size
What is actually happening?
can’t
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to change fontSize of labels of the TabBar in react ...
I found that you can use "tabBarIcon" with any component and make it's a text =) <Tab.Navigator screenOptions={({ route }) => ({ tabBarIcon: ......
Read more >Custom Bottom Tab Navigator in React Native - YouTube
In this tutorial, you'll learn how to create a custom bottom tab navigator in react native. I have created this custom designed bottom...
Read more >Change editor font size | JetBrains Rider Documentation
Press Ctrl+Alt+S to open the IDE settings and select Keymap. Use the search box to find Increase font size, Decrease font size, and...
Read more >How to Create a Custom Tab Bar in React Native - Crowdbotics
In this post, we're going to create a custom tab bar using the React Navigation library bottom tabs component. We'll start by building...
Read more >TabNavigator reference - React Navigation
tabBarComponent - Component to use as the tab bar, e.g. TabBarBottom (this is the ... which overrides the paths set in the routeConfigs....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It bothered me for a few days!Finally I found a good solution , now I will share with you.
You can also put an icon in the span tag like below:
If you can speak Chinese ,you can visit my CSDN blog [https://blog.csdn.net/jiangkai528/article/details/80052201]
你好, 請問這個效果你做到了嗎? 我也對這個沒辦法