communication-react-19
Version:
React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)
21 lines • 769 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { mergeStyles } from '@fluentui/react';
/**
* Message Bar incorrectly applies dark theme and high contrast theme styles to links that have no hrefs.
* This is a workaround to ensure that the link color is correct.
*
* More info: https://github.com/microsoft/fluentui/issues/14683
*
* @private
*/
export const messageBarLinkStyles = (theme, underline) => mergeStyles({
textDecoration: underline ? 'underline' : 'none',
color: theme.palette.themeDarkAlt,
textDecorationColor: theme.palette.themeDarkAlt,
'@media (forced-colors: active)': {
color: 'LinkText',
textDecorationColor: 'LinkText'
}
});
//# sourceMappingURL=MessageBarLink.styles.js.map