@@ -25,14 +25,25 @@ const buttonStyles = Object.values(ValueState).reduce((acc, cur) => {
25
25
cssType = 'Critical' ;
26
26
break ;
27
27
default :
28
- cssType = 'Neutral ' ;
28
+ cssType = 'Information ' ;
29
29
}
30
30
const standard = `&[data-type="${ cur } "]` ;
31
31
const hover = `&[data-type="${ cur } "]:hover` ;
32
32
const active = `&[data-type="${ cur } "]:active` ;
33
+
33
34
return {
34
35
...acc ,
36
+ textShadow :
37
+ cssType === 'Information'
38
+ ? ThemingParameters . sapContent_TextShadow
39
+ : ThemingParameters . sapContent_ContrastTextShadow ,
35
40
[ standard ] : {
41
+ '&::part(button)::after' : {
42
+ borderColor :
43
+ cssType === 'Information'
44
+ ? ThemingParameters . sapContent_FocusColor
45
+ : ThemingParameters . sapContent_ContrastFocusColor
46
+ } ,
36
47
color : ThemingParameters [ `sapButton_${ cssType } _TextColor` ] ,
37
48
background : ThemingParameters [ `sapButton_${ cssType } _Background` ] ,
38
49
borderColor : ThemingParameters [ `sapButton_${ cssType } _BorderColor` ]
@@ -45,16 +56,17 @@ const buttonStyles = Object.values(ValueState).reduce((acc, cur) => {
45
56
[ active ] : {
46
57
color : ThemingParameters [ `sapButton_${ cssType } _Active_TextColor` ] ,
47
58
background : ThemingParameters [ `sapButton_${ cssType } _Active_Background` ] ,
48
- borderColor : ThemingParameters [ `sapButton_${ cssType } _Active_BorderColor` ]
59
+ borderColor : ThemingParameters [ `sapButton_${ cssType } _Active_BorderColor` ] ,
60
+ '&::part(button)::after' : {
61
+ borderColor : ThemingParameters . sapContent_FocusColor
62
+ }
49
63
}
50
64
} ;
51
65
} , { } ) ;
52
66
53
67
const useStyles = createUseStyles (
54
68
{
55
- btn : {
56
- ...buttonStyles
57
- }
69
+ btn : buttonStyles
58
70
} ,
59
71
{ name : 'MessageViewButtonStyles' }
60
72
) ;
0 commit comments