Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: reduce the inline style #174

Open
mortalYoung opened this issue Apr 6, 2022 · 1 comment
Open

Enhancement: reduce the inline style #174

mortalYoung opened this issue Apr 6, 2022 · 1 comment

Comments

@mortalYoung
Copy link

Intro

I wanna change the background of thumb, but this style is an inline style so that I can't rewrite it.

<div
ref={this.thumbRef}
className={classNames(`${prefixCls}-scrollbar-thumb`, {
[`${prefixCls}-scrollbar-thumb-moving`]: dragging,
})}
style={{
width: '100%',
height: spinHeight,
top,
left: 0,
position: 'absolute',
background: 'rgba(0, 0, 0, 0.5)',
borderRadius: 99,
cursor: 'pointer',
userSelect: 'none',
}}
onMouseDown={this.onMouseDown}
/>
</div>

@yuningjiang123
Copy link

Maybe you could use !important

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants