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(Tooltip): add Text parameter to simplify the use of displaying text #2295

Merged
merged 4 commits into from
Dec 26, 2024

Conversation

capdiem
Copy link
Contributor

@capdiem capdiem commented Dec 25, 2024

Resolves #2289

@capdiem capdiem requested a review from Copilot December 25, 2024 16:14
@capdiem capdiem changed the title 🆕 (Tooltip): add Text paraemter to simplify the use of displaying text 🆕 (Tooltip): add Text parameter to simplify the use of displaying text Dec 25, 2024
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • docs/Masa.Blazor.Docs/Examples/components/tooltips/Alignment.razor: Evaluated as low risk
  • docs/Masa.Blazor.Docs/Examples/components/tooltips/Usage.razor: Evaluated as low risk
Comments suppressed due to low confidence (2)

docs/Masa.Blazor.Docs/wwwroot/pages/components/tooltips/en-US.md:10

  • The word 'paraemter' in the pull request title should be 'parameter'.
> Starting from v1.9.0, you can use the `Text` property to set a text type tooltip.

src/Masa.Blazor/Components/Tooltip/MTooltip.razor:48

  • Ensure that Text is not null before adding it to avoid unintended behavior.
@(ChildContent ?? (RenderFragment)(b => b.AddContent(0, Text)))

@capdiem capdiem changed the title 🆕 (Tooltip): add Text parameter to simplify the use of displaying text 🆕 feat(Tooltip): add Text parameter to simplify the use of displaying text Dec 26, 2024
@Qinyouzeng Qinyouzeng merged commit d4934e6 into main Dec 26, 2024
1 check passed
@Qinyouzeng Qinyouzeng deleted the feature/tooltip-text branch December 26, 2024 09:13
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.

[Feature Request] Tooltip: simplify the usage of displaying text
2 participants