Skip to content

Commit

Permalink
fix(ui-top-nav-bar): keep width unchanged when active status is set t…
Browse files Browse the repository at this point in the history
…o topnavbar.item

Closes: INSTUI-4085

Setting the letterSpacing as a workaround makes the width unchanged during state changes.
  • Loading branch information
joyenjoyer committed Jun 13, 2024
1 parent c13fd7f commit f00503e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ const generateStyle = (
color: inverseColor ? componentTheme.colorInverse : componentTheme.color,

...(isActive && {
fontWeight: componentTheme.activeItemFontWeight
fontWeight: componentTheme.activeItemFontWeight,
letterSpacing: -0.1818
}),

'*': {
Expand Down

0 comments on commit f00503e

Please sign in to comment.