diff --git a/change/@uifabric-experiments-2019-07-30-10-32-51-cliffkoh-persona.json b/change/@uifabric-experiments-2019-07-30-10-32-51-cliffkoh-persona.json new file mode 100644 index 0000000000000..ef96c85c06fa1 --- /dev/null +++ b/change/@uifabric-experiments-2019-07-30-10-32-51-cliffkoh-persona.json @@ -0,0 +1,8 @@ +{ + "comment": "Experiments snapshot", + "type": "none", + "packageName": "@uifabric/experiments", + "email": "cliff.koh@microsoft.com", + "commit": "68e92fda0699006a704575a93cb55335230a4ba6", + "date": "2019-07-30T17:32:51.255Z" +} diff --git a/change/office-ui-fabric-react-2019-07-25-13-59-00-master.json b/change/office-ui-fabric-react-2019-07-25-13-59-00-master.json new file mode 100644 index 0000000000000..3a5ee9a401a6a --- /dev/null +++ b/change/office-ui-fabric-react-2019-07-25-13-59-00-master.json @@ -0,0 +1,8 @@ +{ + "comment": "Persona: Fix styles issue caused by unnecessary nesting", + "type": "patch", + "packageName": "office-ui-fabric-react", + "email": "cliff.koh@microsoft.com", + "commit": "080f2b1f3ca771b92c51704e2948f79567d86b29", + "date": "2019-07-25T20:59:00.496Z" +} diff --git a/packages/experiments/src/components/SelectedItemsList/SelectedPeopleList/__snapshots__/SelectedPeopleList.test.tsx.snap b/packages/experiments/src/components/SelectedItemsList/SelectedPeopleList/__snapshots__/SelectedPeopleList.test.tsx.snap index e87eb0eb13283..281ef72679f44 100644 --- a/packages/experiments/src/components/SelectedItemsList/SelectedPeopleList/__snapshots__/SelectedPeopleList.test.tsx.snap +++ b/packages/experiments/src/components/SelectedItemsList/SelectedPeopleList/__snapshots__/SelectedPeopleList.test.tsx.snap @@ -218,9 +218,6 @@ Array [ & .contextualHost { display: none; } - &:hover $primaryText { - color: #201f1e; - } >
{ selectors: { '.contextualHost': { display: 'none' - }, - - ':hover': { - selectors: { - $primaryText: { - color: palette.neutralDark - } - } } } }, @@ -215,7 +207,12 @@ export const getStyles = (props: IPersonaStyleProps): IPersonaStyles => { { color: palette.neutralPrimary, fontWeight: FontWeights.regular, - fontSize: FontSizes.medium + fontSize: FontSizes.medium, + selectors: { + ':hover': { + color: palette.neutralDark + } + } }, showSecondaryText && { diff --git a/packages/office-ui-fabric-react/src/components/Persona/PersonaCoin/__snapshots__/PersonaCoin.test.tsx.snap b/packages/office-ui-fabric-react/src/components/Persona/PersonaCoin/__snapshots__/PersonaCoin.test.tsx.snap index 652abda894d7c..58cb416a4a76b 100644 --- a/packages/office-ui-fabric-react/src/components/Persona/PersonaCoin/__snapshots__/PersonaCoin.test.tsx.snap +++ b/packages/office-ui-fabric-react/src/components/Persona/PersonaCoin/__snapshots__/PersonaCoin.test.tsx.snap @@ -31,9 +31,6 @@ exports[`Persona renders Persona children correctly 1`] = ` & .contextualHost { display: none; } - &:hover $primaryText { - color: #201f1e; - } >