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

Rename DomainTooltip to DomainControls and move tooltip logic to DomainWidget #1455

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented Jul 19, 2023

Third step (after #1445 and #1448) in addressing #1382 and #1377.

In the first commit, DomainTooltip becomes DomainControls and the tooltip logic moves up into DomainWidget. In the second commit, I export DomainControls and document it in Storybook:

image

The final step will be to double check if any of the CSS customisation properties need to be renamed.

@axelboc axelboc changed the title Domain controls Rename DomainTooltip to DomainControls and move tooltip logic to DomainWidget Jul 19, 2023
@axelboc axelboc requested a review from loichuder July 19, 2023 12:19
);
});

DomainControls.displayName = 'DomainControls';
Copy link
Member

Choose a reason for hiding this comment

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

What is this for ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's because React loses the name of components encapsulated by forwardRef.

@axelboc axelboc merged commit f998946 into main Jul 19, 2023
8 checks passed
@axelboc axelboc deleted the domain-controls branch July 19, 2023 12:56
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.

2 participants