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

feat: calculate body class names seperately #1197

Merged
merged 6 commits into from
Dec 25, 2023
Merged

feat: calculate body class names seperately #1197

merged 6 commits into from
Dec 25, 2023

Conversation

Raubzeug
Copy link
Contributor

Calculate base body class names in one place and export function that allows to get basic body classes with theme to use them in SSR.

@Raubzeug Raubzeug requested review from resure and ogonkov December 12, 2023 15:16
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

@resure resure requested a review from amje December 12, 2023 23:03
) {
return b(modifier);
}
export function getBodyRootClassName(
Copy link
Contributor

Choose a reason for hiding this comment

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

"body" is redundant here, root can be on any element

return bNew(modifier, addition);
}

export function getBaseBodyRootClassName(theme?: RealTheme) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: getInitialRootClassName

@amje amje merged commit 3dcf03d into main Dec 25, 2023
4 checks passed
@amje amje deleted the get-body-class-names branch December 25, 2023 16:04
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.

5 participants