Skip to content

Commit 2286800

Browse files
authored
fix(sidebar): Make the hover/active background effect take up the full element. ie. flush with the sides (#6083)
Make the hover/active background effect take up the full element. ie. flush with the sides
1 parent 06d3ebc commit 2286800

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/compass-connections-navigation/src/base-navigation-item.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ const menuStyles = css({
3737
});
3838

3939
const itemContainerStyles = css({
40-
paddingLeft: spacing[300],
41-
paddingRight: spacing[300],
4240
cursor: 'pointer',
4341
color: 'var(--item-color)',
4442
backgroundColor: 'var(--item-bg-color)',
@@ -59,10 +57,8 @@ const itemWrapperStyles = css({
5957
display: 'flex',
6058
height: ROW_HEIGHT,
6159
alignItems: 'center',
62-
paddingLeft: spacing[100],
63-
paddingRight: spacing[100],
60+
paddingRight: spacing[400],
6461
gap: spacing[50],
65-
borderRadius: spacing[100],
6662
});
6763

6864
const labelAndIconWrapperStyles = css({

packages/compass-connections-navigation/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const getTreeItemStyles = ({
55
level,
66
isExpandable,
77
}: Pick<SidebarTreeItem, 'isExpandable' | 'level'>): React.CSSProperties => {
8-
const DEFAULT_PADDING = spacing[100];
8+
const DEFAULT_PADDING = spacing[400];
99
const EXPAND_ICON_WIDTH = spacing[400];
1010
const EXPAND_ICON_GAP = spacing[50];
1111
const EXPAND_ICON_SIZE = EXPAND_ICON_WIDTH + EXPAND_ICON_GAP;

0 commit comments

Comments
 (0)