Skip to content

Commit a40789d

Browse files
committed
chore(react): update font size of Navbar sub item
1 parent b0ca83b commit a40789d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

packages/react/src/components/CollapsibleNavbarItem/CollapsibleNavbarItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const CollapsibleNavbarItem: ForwardRefExoticComponent<CollapsibleNavbarItemProp
109109
{...otherSubItemProps}
110110
>
111111
<ListItemIcon>{subItemIcon}</ListItemIcon>
112-
<ListItemText secondary={subItemName} />
112+
<ListItemText primary={subItemName} />
113113
{open && subItemTag ? (
114114
<Chip
115115
label={subItemTag}

packages/react/src/components/CollapsibleNavbarItem/collapsible-navbar-item.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999
.oxygen-list-sub-item-button {
100100
border-radius: 0;
101101
transition: all 0.2s;
102-
padding: 6px 14px;
102+
padding: 6px 12px;
103+
color: var(--oxygen-palette-secondary-contrastText);
103104

104105
&:last-child {
105106
border-bottom-left-radius: var(--oxygen-shape-borderRadius);
@@ -109,10 +110,6 @@
109110
.oxygen-list-item-icon {
110111
min-width: 0;
111112
padding: 0 1px;
112-
113-
svg {
114-
width: 12px;
115-
}
116113
}
117114

118115
.oxygen-list-item-text {
@@ -163,7 +160,7 @@
163160
.oxygen-list-sub-item-button {
164161
justify-content: initial;
165162
transition: all 0.2s;
166-
padding-left: 30px;
163+
padding-left: 40px;
167164

168165
.oxygen-list-item-icon {
169166
margin-right: 10px;

0 commit comments

Comments
 (0)