Skip to content

Commit

Permalink
fix(scrollbar): bar zindex
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Jan 1, 2024
1 parent b5a72a0 commit 771d65d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/_internal/scrollbar/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,20 @@ export default cB('scrollbar', `
]),
cM('disabled', [
c('>', [
cE('scrollbar', {
pointerEvents: 'none'
})
cE('scrollbar', 'pointer-events: none;')
])
]),
c('>', [
cE('scrollbar', `
z-index: 1;
position: absolute;
cursor: pointer;
pointer-events: all;
background-color: var(--n-scrollbar-color);
transition: background-color .2s var(--n-scrollbar-bezier);
`, [
fadeInTransition(),
c('&:hover', {
backgroundColor: 'var(--n-scrollbar-color-hover)'
})
c('&:hover', 'background-color: var(--n-scrollbar-color-hover);')
])
])
])
Expand Down
1 change: 1 addition & 0 deletions volar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ declare module 'vue' {
NSplit: (typeof import('naive-ui'))['NSplit']
NVirtualList: (typeof import('naive-ui'))['NVirtualList']
NQrCode: (typeof import('naive-ui'))['NQrCode']
NFlex: (typeof import('naive-ui'))['NFlex']
}
}
export {}

0 comments on commit 771d65d

Please sign in to comment.