-
Notifications
You must be signed in to change notification settings - Fork 99
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
fix(theme): bring back root classname helper and fix docs #1633
Conversation
Preview is ready. |
Visual Tests Report is ready. |
|
||
const b = block(ROOT_CLASSNAME); | ||
|
||
interface RootMods { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interface RootMods { | |
interface RootMods { | |
nativeScrollbar?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're planning to remove scroll customization, #1587
} | ||
|
||
export function getRootClassName({theme}: RootMods = {}, className?: string) { | ||
return b({theme}, className); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return b({theme}, className); | |
return b({theme, 'native-scrollbar': nativeScrollbar}, className); |
No description provided.