Skip to content

Commit

Permalink
Remove Sidebar text hover rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sujan-s committed Feb 12, 2024
1 parent 37135fd commit 4f22f9f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- Add generic block-level sectioning elements as custom components. Eg `<Div>`, `<Section>`, `<Article>` etc
- Add copy code to clipboard for `CodeBlock`
- Add `RadioTabGroup` component
- Convert all millisecond values to seconds
- Convert all millisecond values to seconds

#### ⚠️ BREAKING CHANGES ⚠️
- Remove `ThemeProvider` and `theme` prop from all components
Expand Down
28 changes: 16 additions & 12 deletions src/components/Sidebar/SidebarWrapper/sidebar-wrapper.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,22 @@
position : absolute;
}

[data-sidebar-item]:hover [data-sidebar-item-icon] + [data-sidebar-item-text] {
display : flex;
position : fixed;
left : 40px;
align-self : center;
border-radius : var(--sidebar-collapsed-item-border-radius);
padding : 4px 8px;
background-color : var(--sidebar-collapsed-item-bg);
color : var(--sidebar-collapsed-item-link-text);
font-size : 88%;
box-shadow : 0 4px 16px -2px rgba(0, 0, 0, 0.24);
}
/* TEMPORARY FIX */
/* Impossible to fix this using the current implementation, and need */
/* to find a better solution. Temporarily removing this feature. */
/* ================================================================== */
/*[data-sidebar-item]:hover [data-sidebar-item-icon] + [data-sidebar-item-text] {*/
/* display : flex;*/
/* position : fixed;*/
/* left : 40px;*/
/* align-self : center;*/
/* border-radius : var(--sidebar-collapsed-item-border-radius);*/
/* padding : 4px 8px;*/
/* background-color : var(--sidebar-collapsed-item-bg);*/
/* color : var(--sidebar-collapsed-item-link-text);*/
/* font-size : 88%;*/
/* box-shadow : 0 4px 16px -2px rgba(0, 0, 0, 0.24);*/
/*}*/

[data-sidebar-foooter] { padding-left : 0; }
}
Expand Down

0 comments on commit 4f22f9f

Please sign in to comment.