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

refactor!: remove popup wrapper class, use content classes for popover… #711

Merged
merged 3 commits into from
Jun 29, 2023

Conversation

helenjer
Copy link
Contributor

@helenjer helenjer commented Jun 6, 2023

…s and tooltips

BREAKING CHANGE
Connected with #656 and further discussion.

@helenjer helenjer added this to the V5 milestone Jun 6, 2023
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@helenjer helenjer changed the base branch from main to next June 9, 2023 20:12
src/components/Popup/Popup.scss Outdated Show resolved Hide resolved
// Can be overridden, see Tooltip
--yc-popup-background-color: var(--yc-color-base-float);
--yc-popup-border-color: var(--yc-color-line-solid);
--yc-popup-border-width: 1px;
Copy link
Contributor

Choose a reason for hiding this comment

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

These variables should remain on the root node

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They left at same level as it was. Do we need to move it up inside #{$block}{} declaration, or what are the changes needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've moved it up to #{$block}

src/components/Popover/Popover.scss Outdated Show resolved Hide resolved
src/components/Tooltip/Tooltip.scss Outdated Show resolved Hide resolved
@@ -15,6 +15,7 @@ export interface TooltipProps extends TooltipDelayProps {
children: React.ReactElement;
className?: string;
contentClassName?: string;
popupContentClassName?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we actually need this? We already have className for Tooltip's content itself

Copy link
Contributor Author

@helenjer helenjer Jun 20, 2023

Choose a reason for hiding this comment

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

It was added for backward ability to customize popup content because previously popup className was used for it (content) but now popup className is used for top-level elem (wrapper). Guess we can omit due to major, I've removed.

@amje amje merged commit 3a45f20 into next Jun 29, 2023
@amje amje deleted the refactor_popup_classes branch June 29, 2023 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants