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

✨ Add sticky prop to Topbar #2508

Merged
merged 3 commits into from
Sep 21, 2022
Merged

✨ Add sticky prop to Topbar #2508

merged 3 commits into from
Sep 21, 2022

Conversation

martalalik
Copy link
Contributor

Resolves #2504

@@ -33,11 +32,19 @@ const StyledTopBar = styled(Paper)<TopbarProps>(({ theme }) => {
${bordersTemplate(theme.border)}
${spacingsTemplate(theme.spacings)};
${typographyTemplate(theme.typography)}

${sticky
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could this not be sticky && instead of ternary if else?

Copy link
Collaborator

@oddvernes oddvernes left a comment

Choose a reason for hiding this comment

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

LGTM

@martalalik martalalik merged commit acc69a4 into develop Sep 21, 2022
@martalalik martalalik deleted the enh/ML-2504-sticky-topbar branch September 21, 2022 12:58
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.

Topbar: Conform sticky toggling
2 participants