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

[FluentPersona] Manage the empty Name #1710

Merged
merged 3 commits into from
Mar 18, 2024
Merged

Conversation

dvoituron
Copy link
Collaborator

[FluentPersona] Manage the empty Name

Manage the empty Name="" to display a Persona without other properties.

  • Adding @attributes.
  • Adding OnClick event.
  • Adding String.IsNullOrEmpty(Name) to not generate the code if content of name is empty.

Examples

image

<FluentPersona Name="Lydia Bauer"
               ImageSize="50px"
               Status="PresenceStatus.Busy"
               StatusSize="PresenceBadgeSize.Small">
</FluentPersona>

<FluentPersona Initials="LB" ImageSize="50px" />

<FluentPersona ImageSize="50px" />

Unit Tests

Unit tests updated and verified.

@dvoituron dvoituron enabled auto-merge (squash) March 18, 2024 11:14
@dvoituron dvoituron merged commit d3be2bd into dev Mar 18, 2024
4 checks passed
@dvoituron dvoituron deleted the users/dvoituron/persona-no-name branch March 18, 2024 11:31
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.

None yet

2 participants