Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "Dark text for raise hand button in dark theme",
"comment": "Dark text for raise hand button in dark theme",
"packageName": "@azure/communication-react",
"email": "97124699+prabhjot-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "Dark text for raise hand button in dark theme",
"comment": "Dark text for raise hand button in dark theme",
"packageName": "@azure/communication-react",
"email": "97124699+prabhjot-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
26 changes: 19 additions & 7 deletions packages/react-components/src/components/RaiseHandButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,26 @@ export const RaiseHandButton = (props: RaiseHandButtonProps): JSX.Element => {

const raiseHandButtonStyles = (theme: Theme): IButtonStyles => ({
rootChecked: {
background: theme.palette.themePrimary,
color: DefaultPalette.white,
':focus::after': { outlineColor: `${DefaultPalette.white}` }
background: theme.semanticColors.primaryButtonBackground,
color: theme.semanticColors.primaryButtonText,
':focus::after': { outlineColor: `${DefaultPalette.white} !important` }, // added !important to avoid override by FluentUI button styles
'@media (forced-colors: active)': {
border: '1px solid',
borderColor: theme.palette.black
}
},
rootCheckedHovered: {
background: theme.palette.themePrimary,
color: DefaultPalette.white,
':focus::after': { outlineColor: `${DefaultPalette.white}` }
background: theme.semanticColors.primaryButtonBackgroundHovered,
color: theme.semanticColors.primaryButtonTextHovered,
':focus::after': { outlineColor: `${DefaultPalette.white} !important` }, // added !important to avoid override by FluentUI button styles
'@media (forced-colors: active)': {
border: '1px solid',
borderColor: theme.palette.black
}
},
labelChecked: { color: DefaultPalette.white }
rootCheckedPressed: {
background: theme.semanticColors.primaryButtonBackgroundPressed,
color: theme.semanticColors.primaryButtonTextPressed
},
labelChecked: { color: theme.semanticColors.primaryButtonText }
});
Loading