@@ -183,6 +183,11 @@ const DrawerList = styled.div<{
183183 gap: 8px;
184184 background-color: ${ ( p ) => p . $itemStyle . background } ;
185185 color: ${ ( p ) => p . $itemStyle . text } ;
186+ font-size: ${ ( p ) => p . $itemStyle . textSize } ;
187+ font-family: ${ ( p ) => p . $itemStyle . fontFamily } ;
188+ font-style: ${ ( p ) => p . $itemStyle . fontStyle } ;
189+ font-weight: ${ ( p ) => p . $itemStyle . textWeight } ;
190+ text-decoration: ${ ( p ) => p . $itemStyle . textDecoration } ;
186191 border-radius: ${ ( p ) => p . $itemStyle . radius } ;
187192 border: 1px solid ${ ( p ) => p . $itemStyle . border } ;
188193 margin: ${ ( p ) => p . $itemStyle . margin } ;
@@ -194,11 +199,21 @@ const DrawerList = styled.div<{
194199 background-color: ${ ( p ) => p . $hoverStyle . background } ;
195200 color: ${ ( p ) => p . $hoverStyle . text } ;
196201 border: 1px solid ${ ( p ) => p . $hoverStyle . border } ;
202+ font-size: ${ ( p ) => p . $hoverStyle . textSize || p . $itemStyle . textSize } ;
203+ font-family: ${ ( p ) => p . $hoverStyle . fontFamily || p . $itemStyle . fontFamily } ;
204+ font-style: ${ ( p ) => p . $hoverStyle . fontStyle || p . $itemStyle . fontStyle } ;
205+ font-weight: ${ ( p ) => p . $hoverStyle . textWeight || p . $itemStyle . textWeight } ;
206+ text-decoration: ${ ( p ) => p . $hoverStyle . textDecoration || p . $itemStyle . textDecoration } ;
197207 }
198208 .drawer-item.active {
199209 background-color: ${ ( p ) => p . $activeStyle . background } ;
200210 color: ${ ( p ) => p . $activeStyle . text } ;
201211 border: 1px solid ${ ( p ) => p . $activeStyle . border } ;
212+ font-size: ${ ( p ) => p . $activeStyle . textSize || p . $itemStyle . textSize } ;
213+ font-family: ${ ( p ) => p . $activeStyle . fontFamily || p . $itemStyle . fontFamily } ;
214+ font-style: ${ ( p ) => p . $activeStyle . fontStyle || p . $itemStyle . fontStyle } ;
215+ font-weight: ${ ( p ) => p . $activeStyle . textWeight || p . $itemStyle . textWeight } ;
216+ text-decoration: ${ ( p ) => p . $activeStyle . textDecoration || p . $itemStyle . textDecoration } ;
202217 }
203218` ;
204219
@@ -260,16 +275,37 @@ const StyledTabBar = styled(TabBar)<{
260275 .adm-tab-bar-item {
261276 background-color: ${ ( props ) => props . $tabItemStyle ?. background } ;
262277 color: ${ ( props ) => props . $tabItemStyle ?. text } ;
278+ font-size: ${ ( props ) => props . $tabItemStyle ?. textSize } ;
279+ font-family: ${ ( props ) => props . $tabItemStyle ?. fontFamily } ;
280+ font-style: ${ ( props ) => props . $tabItemStyle ?. fontStyle } ;
281+ font-weight: ${ ( props ) => props . $tabItemStyle ?. textWeight } ;
282+ text-decoration: ${ ( props ) => props . $tabItemStyle ?. textDecoration } ;
263283 border-radius: ${ ( props ) => props . $tabItemStyle ?. radius } !important;
264284 border: ${ ( props ) => `1px solid ${ props . $tabItemStyle ?. border } ` } ;
265285 margin: ${ ( props ) => props . $tabItemStyle ?. margin } ;
266286 padding: ${ ( props ) => props . $tabItemStyle ?. padding } ;
287+
288+ .adm-tab-bar-item-title {
289+ font-size: ${ ( props ) => props . $tabItemStyle ?. textSize } ;
290+ font-family: ${ ( props ) => props . $tabItemStyle ?. fontFamily } ;
291+ font-style: ${ ( props ) => props . $tabItemStyle ?. fontStyle } ;
292+ font-weight: ${ ( props ) => props . $tabItemStyle ?. textWeight } ;
293+ text-decoration: ${ ( props ) => props . $tabItemStyle ?. textDecoration } ;
294+ }
267295 }
268296
269297 .adm-tab-bar-item:hover {
270298 background-color: ${ ( props ) => props . $tabItemHoverStyle ?. background } !important;
271299 color: ${ ( props ) => props . $tabItemHoverStyle ?. text } !important;
272300 border: ${ ( props ) => `1px solid ${ props . $tabItemHoverStyle ?. border } ` } ;
301+
302+ .adm-tab-bar-item-title {
303+ font-size: ${ ( props ) => props . $tabItemHoverStyle ?. textSize || props . $tabItemStyle ?. textSize } ;
304+ font-family: ${ ( props ) => props . $tabItemHoverStyle ?. fontFamily || props . $tabItemStyle ?. fontFamily } ;
305+ font-style: ${ ( props ) => props . $tabItemHoverStyle ?. fontStyle || props . $tabItemStyle ?. fontStyle } ;
306+ font-weight: ${ ( props ) => props . $tabItemHoverStyle ?. textWeight || props . $tabItemStyle ?. textWeight } ;
307+ text-decoration: ${ ( props ) => props . $tabItemHoverStyle ?. textDecoration || props . $tabItemStyle ?. textDecoration } ;
308+ }
273309 }
274310
275311 .adm-tab-bar-item.adm-tab-bar-item-active {
@@ -278,6 +314,13 @@ const StyledTabBar = styled(TabBar)<{
278314 .adm-tab-bar-item-icon, .adm-tab-bar-item-title {
279315 color: ${ ( props ) => props . $tabItemActiveStyle . text } ;
280316 }
317+ .adm-tab-bar-item-title {
318+ font-size: ${ ( props ) => props . $tabItemActiveStyle ?. textSize || props . $tabItemStyle ?. textSize } ;
319+ font-family: ${ ( props ) => props . $tabItemActiveStyle ?. fontFamily || props . $tabItemStyle ?. fontFamily } ;
320+ font-style: ${ ( props ) => props . $tabItemActiveStyle ?. fontStyle || props . $tabItemStyle ?. fontStyle } ;
321+ font-weight: ${ ( props ) => props . $tabItemActiveStyle ?. textWeight || props . $tabItemStyle ?. textWeight } ;
322+ text-decoration: ${ ( props ) => props . $tabItemActiveStyle ?. textDecoration || props . $tabItemStyle ?. textDecoration } ;
323+ }
281324 }
282325` ;
283326
0 commit comments