Skip to content

Commit

Permalink
fix: Using correct icon and color for away + out-of-office PresenceBa…
Browse files Browse the repository at this point in the history
…dge (#26655)

* fix: Using correct icon and color for away + out-of-office PresenceBadge.

* Adding change file.

---------

Co-authored-by: Humberto Makoto Morimoto Burgos <[email protected]>
  • Loading branch information
khmakoto and Humberto Makoto Morimoto Burgos authored Feb 4, 2023
1 parent a29dcc5 commit fe583c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Using correct icon and color for away + out-of-office PresenceBadge.",
"packageName": "@fluentui/react-badge",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const iconMap = (status: PresenceBadgeState['status'], outOfOffice: boolean, siz
case 'available':
return outOfOffice ? presenceAvailableRegular[size] : presenceAvailableFilled[size];
case 'away':
return outOfOffice ? presenceOfflineRegular[size] : presenceAwayFilled[size];
return outOfOffice ? presenceOofRegular[size] : presenceAwayFilled[size];
case 'blocked':
return presenceBlockedRegular[size];
case 'busy':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ const useStyles = makeStyles({
outOfOfficeBusy: {
color: tokens.colorPaletteRedBackground3,
},
outOfOfficeAway: {
color: tokens.colorPaletteMarigoldBackground3,
},

// Icons are not resizeable, and these sizes are currently missing
// use `!important` to size the currently available icons to the missing ones
Expand Down Expand Up @@ -105,7 +102,7 @@ export const usePresenceBadgeStyles_unstable = (state: PresenceBadgeState): Pres
state.outOfOffice && styles.outOfOffice,
state.outOfOffice && state.status === 'available' && styles.outOfOfficeAvailable,
state.outOfOffice && isBusy && styles.outOfOfficeBusy,
state.outOfOffice && state.status === 'away' && styles.outOfOfficeAway,
state.outOfOffice && state.status === 'away' && styles.statusOutOfOffice,
state.outOfOffice && state.status === 'offline' && styles.statusOffline,
state.outOfOffice && state.status === 'out-of-office' && styles.statusOutOfOffice,
state.size === 'tiny' && styles.tiny,
Expand Down

0 comments on commit fe583c0

Please sign in to comment.