Skip to content

fix(app-webdir-ui): hide social media list when profile has no social links#1747

Open
juanmitriatti wants to merge 1 commit into
devfrom
UDS-2164
Open

fix(app-webdir-ui): hide social media list when profile has no social links#1747
juanmitriatti wants to merge 1 commit into
devfrom
UDS-2164

Conversation

@juanmitriatti

@juanmitriatti juanmitriatti commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Accessibility fix (JSM "Web Directory - hdasoa"): profiles without social media or website links rendered an empty <ul class="person-social-medias"></ul>. The list now only renders when there is at least one icon to show.

Changes

  • app-webdir-ui ProfileCard: hasSocialLinks check (facebook/linkedin/twitter/website) wraps the ul
  • unity-react-core PersonProfile: same guard; also prevents a crash when socialMedia is undefined

Testing

  • New tests: bio-only profile → no ul; one link → ul with one li; empty/undefined socialMedia → no ul
  • All 211 unity-react-core tests pass; verified in Storybook reproducing the ticket scenario

… links

The Web Directory profile card rendered an empty
ul.person-social-medias when the profile had a bio but no social
media or website links (accessibility issue: screen readers announce
an empty list).

- ProfileCard: the list only renders when at least one of
  facebook/linkedin/twitter/website links exists
- PersonProfile (unity-react-core): same guard; also prevents a crash
  when the optional socialMedia prop is undefined
@juanmitriatti
juanmitriatti requested a review from a team as a code owner July 17, 2026 14:35
@juanmitriatti juanmitriatti self-assigned this Jul 17, 2026
@juanmitriatti juanmitriatti added the enhancement New feature or request label Jul 17, 2026
@asu-jenkins-devops

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants