@@ -11,25 +11,15 @@ governing permissions and limitations under the License.
11
11
*/
12
12
13
13
.spectrum-CoachMark {
14
- --spectrum-coachmark-min-width : 296px ; /* TODO: Replace with new token */
15
- --spectrum-coachmark-width : 296px ; /* TODO: Replace with new token */
16
- --spectrum-coachmark-max-width : 380px ; /* TODO: Replace with new token */
17
-
18
- --spectrum-coachmark-media-min-height : var (--spectrum-coach-mark-media-minimum-height );
19
- --spectrum-coachmark-media-height : var (--spectrum-coach-mark-media-height );
20
-
21
14
--spectrum-coachmark-padding : var (--spectrum-coach-mark-edge-to-content );
22
15
23
- --mod-popover-border-width : var (--spectrum-border-width-100 );
24
- --mod-popover-corner-radius : var (--spectrum-corner-radius-100 );
25
16
--spectrum-coachmark-border-size : var (--mod-popover-border-width );
26
17
--spectrum-coachmark-border-radius : var (--mod-popover-corner-radius );
27
18
28
19
--spectrum-coachmark-header-to-body : var (--spectrum-spacing-200 );
29
20
--spectrum-coachmark-body-to-footer : var (--spectrum-spacing-300 );
30
21
31
22
--spectrum-coachmark-title-color : var (--spectrum-heading-color );
32
- --spectrum-coachmark-title-font-size : var (--spectrum-coach-mark-title-size );
33
23
34
24
--spectrum-coachmark-title-font-family : var (--spectrum-heading-sans-serif-font-family-stack );
35
25
--spectrum-coachmark-title-font-style : var (--spectrum-heading-serif-font-style );
@@ -38,17 +28,14 @@ governing permissions and limitations under the License.
38
28
--spectrum-coachmark-title-text-line-height : var (--spectrum-heading-line-height );
39
29
40
30
--spectrum-coachmark-content-font-color : var (--spectrum-body-color );
41
- --spectrum-coachmark-content-font-size : var ( --spectrum-coach-mark-body-size );
31
+
42
32
--spectrum-coachmark-content-font-weight : var (--spectrum-body-sans-serif-font-weight );
43
33
--spectrum-coachmark-content-font-family : var (--spectrum-body-sans-serif-font-family );
44
34
--spectrum-coachmark-content-font-style : var (--spectrum-body-sans-serif-font-style );
45
35
--spectrum-coachmark-content-line-height : var (--spectrum-body-line-height );
46
36
47
- --spectrum-coachmark-media-min-height : var (--spectrum-coach-mark-media-minimun-height );
48
- --spectrum-coachmark-media-height : var (--spectrum-coach-mark-media-height ); /* THIS NEEDS A NEW TOKEN */
49
-
50
37
--spectrum-coachmark-step-color : var (--spectrum-coach-mark-pagination-color );
51
- --spectrum-coachmark-step-font-size : var ( --spectrum-coach-mark-pagination-body-size );
38
+
52
39
--spectrum-coachmark-step-font-weight : var (--spectrum-body-medium-font-weight );
53
40
--spectrum-coachmark-step-font-family : var (--spectrum-body-sans-serif-font-family );
54
41
--spectrum-coachmark-step-font-style : var (--spectrum-body-sans-serif-font-style );
@@ -58,9 +45,11 @@ governing permissions and limitations under the License.
58
45
--spectrum-coachmark-heading-to-action-button : var (--spectrum-spacing-300 );
59
46
60
47
--mod-buttongroup-justify-content : flex-end;
48
+ --mod-popover-border-width : var (--spectrum-border-width-100 );
49
+ --mod-popover-corner-radius : var (--spectrum-corner-radius-100 );
61
50
--mod-popover-content-area-spacing-vertical : 0 ;
62
- /* --mod-button-edge-to-visual-only: 9px; */
63
- --mod-buttongroup-spacing-horizontal : var ( --spectrum-spacing-100 );
51
+ --mod-button-edge-to-visual-only : 9px ;
52
+
64
53
65
54
--spectrum-coachmark-buttongroup-hidden : none;
66
55
--spectrum-coachmark-buttongroup-displayed : flex;
@@ -69,12 +58,30 @@ governing permissions and limitations under the License.
69
58
--spectrum-coachmark-buttongroup-mobile-hidden : none;
70
59
--spectrum-coachmark-buttongroup-mobile-displayed : flex;
71
60
--spectrum-coachmark-buttongroup-mobile-display : var (--spectrum-coachmark-buttongroup-mobile-hidden );
61
+
62
+ --spectrum-coachmark-menu-hidden : none;
63
+ --spectrum-coachmark-menu-displayed : inline-block;
64
+ --spectrum-coachmark-menu-display : var (--spectrum-coachmark-menu-displayed );
65
+
66
+ --spectrum-coachmark-menu-mobile-hidden : none;
67
+ --spectrum-coachmark-menu-mobile-displayed : inline-block;
68
+ --spectrum-coachmark-menu-mobile-display : var (--spectrum-coachmark-buttongroup-mobile-hidden );
69
+
70
+ --spectrum-coachmark-min-width : 296px ; /* TODO: Replace with new token */
71
+ --spectrum-coachmark-width : 296px ; /* TODO: Replace with new token */
72
+ --spectrum-coachmark-max-width : 380px ; /* TODO: Replace with new token */
73
+ --spectrum-coachmark-content-font-size : var (--spectrum-body-size-s );
74
+ --spectrum-coachmark-step-font-size : var (--spectrum-body-size-s );
75
+ --spectrum-coachmark-title-font-size : var (--spectrum-heading-size-xs );
76
+ --spectrum-coachmark-media-height : 222px ; /* THIS NEEDS A NEW TOKEN */
77
+ --spectrum-coachmark-media-min-height : 166px ;
78
+
72
79
}
73
80
74
81
.spectrum-CoachMark {
75
82
position : relative;
76
83
min-inline-size : var (--mod-coachmark-min-width , var (--spectrum-coachmark-min-width ));
77
- max-inline-size : 380 px ; /* TODO: Replace with new token or modifier*/
84
+ max-inline-size : var ( --mod-coachmark-max-width , var ( --spectrum-coachmark-max-width ));
78
85
inline-size : var (--mod-coachmark-width , var (--spectrum-coachmark-width ));
79
86
}
80
87
@@ -86,21 +93,50 @@ governing permissions and limitations under the License.
86
93
display : var (--spectrum-coachmark-buttongroup-display );
87
94
}
88
95
96
+ .spectrum-CoachMark-menu {
97
+ display : var (--spectrum-coachmark-menu-display );
98
+ }
99
+ .spectrum-CoachMark-menu--mobile {
100
+ display : var (--spectrum-coachmark-menu-mobile-display );
101
+ }
102
+
103
+
89
104
.spectrum--large {
105
+ /* TODO: replaces these mods with using new tokens */
106
+ --mod-coachmark-min-width : 216px ;
107
+ --mod-coachmark-width : 216px ;
108
+ --mod-coachmark-max-width : 248px ;
109
+ --mod-coachmark-content-font-size : var (--spectrum-coach-mark-body-size );
110
+ --mod-coachmark-step-font-size : var (--spectrum-coach-mark-pagination-body-size );
111
+ --mod-coachmark-title-font-size : var (--spectrum-coach-mark-title-size );
112
+ --mod-coachmark-media-height : 162px ;
113
+ --mod-coachmark-media-min-height : 121px ;
114
+ --mod-buttongroup-spacing-horizontal : var (--spectrum-spacing-100 );
115
+
116
+ .spectrum-CoachMark-buttongroup {
117
+ --spectrum-coachmark-buttongroup-display : var (--spectrum-coachmark-buttongroup-hidden );
118
+ display : var (--spectrum-coachmark-buttongroup-display );
119
+ }
90
120
91
121
.spectrum-CoachMark-buttongroup--mobile {
92
122
--spectrum-coachmark-buttongroup-mobile-display : var (--spectrum-coachmark-buttongroup-mobile-displayed );
93
123
display : var (--spectrum-coachmark-buttongroup-mobile-display );
94
124
}
95
125
96
- .spectrum-CoachMark-buttongroup {
97
- --spectrum-coachmark-buttongroup-display : var (--spectrum-coachmark-buttongroup-hidden );
98
- display : var (--spectrum-coachmark-buttongroup-display );
126
+ .spectrum-CoachMark-menu {
127
+ --spectrum-coachmark-menu-display : var (--spectrum-coachmark-menu-hidden );
128
+ display : var (--spectrum-coachmark-menu-display );
129
+ }
130
+
131
+ .spectrum-CoachMark-menu--mobile {
132
+ --spectrum-coachmark-menu-mobile-display : var (--spectrum-coachmark-menu-mobile-displayed );
133
+ display : var (--spectrum-coachmark-menu-mobile-display );
99
134
}
100
135
}
101
136
102
137
.spectrum-CoachMark-image-wrapper {
103
- block-size : var (--spectrum-coachmark-media-height );
138
+ block-size : var (--mod-coachmark-media-height , var (--spectrum-coachmark-media-height ));
139
+ min-block-size : var (--mod-coachmark-media-min-height , var (--spectrum-coachmark-media-min-height ));
104
140
inline-size : calc (var (--mod-coachmark-width , var (--spectrum-coachmark-width )) - (var (--mod-coachmark-border-size , var (--spectrum-coachmark-border-size )) * 2 ));
105
141
object-fit : cover;
106
142
object-position : center;
@@ -129,7 +165,7 @@ governing permissions and limitations under the License.
129
165
padding-block-start : var (--mod-coachmark-padding , var (--spectrum-coachmark-padding ));;
130
166
dis play: flex;
131
167
justify- content: space- between;
132
- align- items: flex - end ;
168
+ align- items: center ;
133
169
margin- block- end: var(- - mod- coachmark- header- to - body, var(- - spectrum- coachmark- header- to - body));
134
170
}
135
171
0 commit comments