diff --git a/package.json b/package.json index 1b4a4da..87df0e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "office-contact-card", - "version": "2.3.2", + "version": "2.3.3", "description": "Contact Card in MS Office style", "repository": { "type": "git", diff --git a/src/contactCard/Summary.tsx b/src/contactCard/Summary.tsx index 81f093f..97f3282 100644 --- a/src/contactCard/Summary.tsx +++ b/src/contactCard/Summary.tsx @@ -54,8 +54,13 @@ function renderContactSummary(profile: IPersonaProfile, onContactDetailsClick: ( {profile.officeLocation}  {profile.city} - handleContactDetailsClick(onContactDetailsClick)} aria-label={isExpanded ? 'show more button expanded' : 'show more button collapsed'} data-focus="button" aria-live="polite"> - {isExpanded ? "expanded" : "collapsed"} + handleContactDetailsClick(onContactDetailsClick)} + aria-label={isExpanded ? "show more button expanded" : "show more"} + data-focus="button" + aria-live="polite" + > Show more diff --git a/src/contactCard/__snapshots__/Summary.test.tsx.snap b/src/contactCard/__snapshots__/Summary.test.tsx.snap index f9e92b6..6c46edb 100644 --- a/src/contactCard/__snapshots__/Summary.test.tsx.snap +++ b/src/contactCard/__snapshots__/Summary.test.tsx.snap @@ -65,13 +65,12 @@ exports[`renders Summary w/o any manager 1`] = ` - collapsed Show more @@ -152,13 +151,12 @@ exports[`renders Summary with loading manager 1`] = ` - collapsed Show more @@ -271,13 +269,12 @@ exports[`renders full Summary 1`] = ` - collapsed Show more