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

fix(theme): bring back root classname helper and fix docs #1633

Merged
merged 5 commits into from
Jun 10, 2024
Merged

Conversation

amje
Copy link
Contributor

@amje amje commented Jun 8, 2024

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

src/components/theme/getRootClassName.ts Outdated Show resolved Hide resolved

const b = block(ROOT_CLASSNAME);

interface RootMods {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
interface RootMods {
interface RootMods {
nativeScrollbar?: boolean;

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return b({theme}, className);
return b({theme, 'native-scrollbar': nativeScrollbar}, className);

@amje amje merged commit ba08c66 into main Jun 10, 2024
5 checks passed
@amje amje deleted the theme-fixes branch June 10, 2024 15:44
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

Successfully merging this pull request may close these issues.

4 participants