@@ -53,6 +53,24 @@ const iconColor: { [key: string]: keyof ISemanticColors } = {
5353 [ MessageBarType . info ] : 'infoIcon' ,
5454} ;
5555
56+ const highContrastBorderColor : { [ key : string ] : string } = {
57+ [ MessageBarType . error ] : '#ff0000' ,
58+ [ MessageBarType . blocked ] : '#ff0000' ,
59+ [ MessageBarType . success ] : '#bad80a' ,
60+ [ MessageBarType . warning ] : '#fff100' ,
61+ [ MessageBarType . severeWarning ] : '#ff0000' ,
62+ [ MessageBarType . info ] : 'WindowText' ,
63+ } ;
64+
65+ const highContrastWhiteBorderColor : { [ key : string ] : string } = {
66+ [ MessageBarType . error ] : '#e81123' ,
67+ [ MessageBarType . blocked ] : '#e81123' ,
68+ [ MessageBarType . success ] : '#107c10' ,
69+ [ MessageBarType . warning ] : '#966400' ,
70+ [ MessageBarType . severeWarning ] : '#d83b01' ,
71+ [ MessageBarType . info ] : 'WindowText' ,
72+ } ;
73+
5674export const getStyles = ( props : IMessageBarStyleProps ) : IMessageBarStyles => {
5775 const {
5876 theme,
@@ -63,7 +81,7 @@ export const getStyles = (props: IMessageBarStyleProps): IMessageBarStyles => {
6381 expandSingleLine,
6482 messageBarType = MessageBarType . info ,
6583 } = props ;
66- const { semanticColors, fonts, palette } = theme ;
84+ const { semanticColors, fonts } = theme ;
6785
6886 const SmallScreenSelector = getScreenSelector ( 0 , ScreenWidthMaxSmall ) ;
6987
@@ -108,24 +126,6 @@ export const getStyles = (props: IMessageBarStyleProps): IMessageBarStyles => {
108126 } ,
109127 ] ;
110128
111- const highContrastBorderColor : { [ key : string ] : string } = {
112- [ MessageBarType . error ] : 'rgba(255, 0, 0)' ,
113- [ MessageBarType . blocked ] : 'rgba(255, 0, 0)' ,
114- [ MessageBarType . success ] : palette . greenLight ,
115- [ MessageBarType . warning ] : palette . yellowLight ,
116- [ MessageBarType . severeWarning ] : 'rgba(255, 0, 0)' ,
117- [ MessageBarType . info ] : 'WindowText' ,
118- } ;
119-
120- const highContrastWhiteBorderColor : { [ key : string ] : string } = {
121- [ MessageBarType . error ] : palette . red ,
122- [ MessageBarType . blocked ] : palette . red ,
123- [ MessageBarType . success ] : palette . green ,
124- [ MessageBarType . warning ] : 'rgba(150, 100, 0)' ,
125- [ MessageBarType . severeWarning ] : palette . orange ,
126- [ MessageBarType . info ] : 'WindowText' ,
127- } ;
128-
129129 return {
130130 root : [
131131 classNames . root ,
0 commit comments