Skip to content

Commit

Permalink
Fix sidebar cursor (#188)
Browse files Browse the repository at this point in the history
* Update tokens

* Add cursor pointer
  • Loading branch information
vineethasok authored Oct 27, 2023
1 parent 87714f5 commit 89dfc16
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const SidebarItemWrapper = styled.div<{
white-space: nowrap;
overflow: hidden;
flex-wrap: nowrap;
cursor: pointer;
${({ theme, $collapsible = false, $level, $type }) => {
const itemType = $level === 0 ? "item" : "subItem";
return `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const SidebarTitleWrapper = styled.button<{
width: stretch;
white-space: nowrap;
overflow: hidden;
cursor: pointer;
${({ theme, $collapsible = false, $type }) => `
padding: 0;
padding-left: ${$collapsible ? 0 : theme.click.image.sm.size.width};
Expand Down
3 changes: 2 additions & 1 deletion src/styles/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,8 @@
"color": {
"background": {
"default": string,
"muted": string
"muted": string,
"sidebar": string
},
"text": {
"default": string,
Expand Down
3 changes: 2 additions & 1 deletion src/styles/variables.classic.json
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@
"color": {
"background": {
"default": "#ffffff",
"muted": "#f6f7fa"
"muted": "#f6f7fa",
"sidebar": "#2f2c3a"
},
"text": {
"default": "#161517",
Expand Down
3 changes: 2 additions & 1 deletion src/styles/variables.dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,8 @@
"color": {
"background": {
"default": "#1F1F1C",
"muted": "#282828"
"muted": "#282828",
"sidebar": "#1F1F1C"
},
"text": {
"default": "#ffffff",
Expand Down
3 changes: 2 additions & 1 deletion src/styles/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -2221,7 +2221,8 @@
"color": {
"background": {
"default": "#ffffff",
"muted": "#f6f7fa"
"muted": "#f6f7fa",
"sidebar": "#ffffff"
},
"text": {
"default": "#161517",
Expand Down
3 changes: 2 additions & 1 deletion src/styles/variables.light.json
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,8 @@
"color": {
"background": {
"default": "#ffffff",
"muted": "#f6f7fa"
"muted": "#f6f7fa",
"sidebar": "#ffffff"
},
"text": {
"default": "#161517",
Expand Down

1 comment on commit 89dfc16

@vercel
Copy link

@vercel vercel bot commented on 89dfc16 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

click-ui – ./

click-ui.vercel.app
click-ui-clickhouse.vercel.app
click-ui-git-main-clickhouse.vercel.app

Please sign in to comment.