@@ -25,11 +25,9 @@ governing permissions and limitations under the License.
25
25
--spectrum-coachmark-header-to-body : var (--spectrum-spacing-200 );
26
26
--spectrum-coachmark-body-to-footer : var (--spectrum-spacing-300 );
27
27
28
- --spectrum-coarchmark -title-color : var (--spectrum-heading-color );
28
+ --spectrum-coachmark -title-color : var (--spectrum-heading-color );
29
29
--spectrum-coachmark-title-text-size : var (--spectrum-coach-mark-title-size );
30
- --spectrum-coachmark-title-font-family : var (
31
- --spectrum-heading-sans-serif-font-family-stack
32
- );
30
+ --spectrum-coachmark-title-font-family : var (--spectrum-heading-sans-serif-font-family-stack );
33
31
--spectrum-coachmark-title-font-style : var (--spectrum-heading-serif-font-style );
34
32
--spectrum-coachmark-title-text-font-weight : var (--spectrum-heading-sans-serif-font-weight );
35
33
@@ -58,35 +56,32 @@ governing permissions and limitations under the License.
58
56
--mod-buttongroup-justify-content : flex-end;
59
57
--mod-popover-content-area-spacing-vertical : 0 ;
60
58
--mod-button-edge-to-visual-only : 7px ;
61
- }
62
-
63
- .spectrum-Popover {
64
- width : inherit; /* don't leave this here */
59
+ --mod-buttongroup-spacing-horizontal : var (--spectrum-spacing-100 );
65
60
}
66
61
67
62
.spectrum-CoachMark {
68
63
position : relative;
69
- min-inline-size : var (--spectrum-coachmark-min-width );
64
+ min-inline-size : var (--mod-coachmark-min-width , var ( -- spectrum-coachmark-min-width) );
70
65
max-inline-size : 380px ; /* TODO: Replace with new token or modifier*/
71
66
inline-size : var (--mod-coachmark-width , var (--spectrum-coachmark-width ));
72
67
}
73
68
74
69
.spectrum-CoachMark--mobile {
75
70
position : relative;
76
- min-inline-size : var (--spectrum-coachmark-min-width-mobile );
71
+ min-inline-size : var (--mod-coachmark-min-width-mobile , var ( -- spectrum-coachmark-min-width-mobile) );
77
72
max-inline-size : 380px ; /* TODO: Replace with new token or modifier*/
78
73
inline-size : var (--mod-coachmark-width-mobile , var (--spectrum-coachmark-width-mobile ));
79
74
}
80
75
81
76
82
77
.spectrum-CoachMark--mobile .spectrum-CoachMark-image-wrapper {
83
78
block-size : 121px ; /* TODO: Replace with new token */
84
- inline-size : calc (var (--mod-coachmark-width-mobile , var (--spectrum-coachmark-width-mobile )) - (var (--spectrum-coachmark-border-size ) * 2 ));
79
+ inline-size : calc (var (--mod-coachmark-width-mobile , var (--spectrum-coachmark-width-mobile )) - (var (--mod-coachmark-border-size , var ( -- spectrum-coachmark-border-size) ) * 2 ));
85
80
}
86
81
87
82
.spectrum-CoachMark-image-wrapper {
88
83
block-size : 166px ; /* TODO: Replace with new token */
89
- inline-size : calc (var (--mod-coachmark-width , var (--spectrum-coachmark-width )) - (var (--spectrum-coachmark-border-size ) * 2 ));
84
+ inline-size : calc (var (--mod-coachmark-width , var (--spectrum-coachmark-width )) - (var (--mod-coachmark-border-size , var ( -- spectrum-coachmark-border-size) ) * 2 ));
90
85
object-fit : cover;
91
86
object-position : center;
92
87
border-start-start-radius : inherit;
@@ -98,74 +93,70 @@ governing permissions and limitations under the License.
98
93
width : 100% ;
99
94
height : 100% ;
100
95
object-fit : cover;
101
- border-start-start-radius : calc (var (--spectrum-coachmark-border-radius ) - var (--spectrum-coachmark-border-size ));
102
- border-start-end-radius : calc (var (--spectrum-coachmark-border-radius ) - var (--spectrum-coachmark-border-size ));
96
+ border-start-start-radius : calc (var (--mod-coachmark-border-radius , var ( -- spectrum-coachmark-border-radius )) - var (--mod-coachmark-border-size , var ( -- spectrum-coachmark-border-size) ));
97
+ border-start-end-radius : calc (var (--mod-coachmark-border-radius , var ( -- spectrum-coachmark-border-radius )) - var (--mod-coachmark-border-size , var ( -- spectrum-coachmark-border-size) ));
103
98
}
104
99
105
100
.spectrum-CoachMark-header ,
106
101
.spectrum-CoachMark-content ,
107
102
.spectrum-CoachMark-footer {
108
103
padding-block : 0 ;
109
- padding-inline : var (--spectrum-coachmark-padding );
104
+ padding-inline : var (--mod-coachmark-padding , var ( -- spectrum-coachmark-padding) );
110
105
}
111
106
112
107
.spectrum-CoachMark-header {
113
- padding-block-start : var (--spectrum-coachmark-padding );
108
+ padding-block-start : var (--mod-coachmark-padding , var ( -- spectrum-coachmark-padding )); ;
114
109
dis play: flex;
115
110
justify- content: space- between;
116
111
align- items: flex- end;
117
- margin-block-end : var (--spectrum-coachmark-header-to-body );
112
+ margin- block- end: var(- - mod - coachmark - header - to - body , var( - - spectrum- coachmark- header- to - body) );
118
113
}
119
114
120
115
.spectrum-CoachMark-action-menu {
121
116
white-space : nowrap;
122
117
z-index : 1 ;
123
- margin-inline-start : var (--spectrum-coachmark-heading-to-action-button )
118
+ margin-inline-start : var (--mod-coachmark-heading-to-action-button , var ( -- spectrum-coachmark-heading-to-action-button) )
124
119
}
125
120
126
121
.spectrum-CoachMark-content {
127
- margin-block-end : var (--spectrum-coachmark-body-to-footer );
128
- color : var (--spectrum-coachmark-content-font-color );
129
- font-size : var (--spectrum-coachmark-content-font-size );
130
- font-weight : var (--spectrum-coachmark-content-font-weight );
131
- font-family : var (--spectrum-coachmark-content-font-family );
132
- font-style : var (--spectrum-coachmark-content-font-style );
133
- line-height : var (--spectrum-coachmark-content-line-height );
122
+ margin-block-end : var (--mod-coachmark-body-to-footer , var ( -- spectrum-coachmark-body-to-footer) );
123
+ color : var (--mod-coachmark-content-font-color , var ( -- spectrum-coachmark-content-font-color) );
124
+ font-size : var (--mod-coachmark-content-font-size , var ( -- spectrum-coachmark-content-font-size) );
125
+ font-weight : var (--mod-coachmark-content-font-weight , var ( -- spectrum-coachmark-content-font-weight) );
126
+ font-family : var (--mod-coachmark-content-font-family , var ( -- spectrum-coachmark-content-font-family) );
127
+ font-style : var (--mod-coachmark-content-font-style , var ( -- spectrum-coachmark-content-font-style) );
128
+ line-height : var (--mod-coachmark-content-line-height , var ( -- spectrum-coachmark-content-line-height) );
134
129
}
135
130
136
131
.spectrum-CoachMark-footer {
137
132
display : grid;
138
133
grid-template-columns : 30% 70% ;
139
134
align-items : end;
140
135
margin-block-start : 0 ;
141
- padding-block-end : var (--spectrum-coachmark-padding );
136
+ padding-block-end : var (--mod-coachmark-padding , var ( -- spectrum-coachmark-padding) );
142
137
143
138
.spectrum-ButtonGroup {
144
139
grid-column-start : 2 ;
145
- --mod-buttongroup-spacing-horizontal : var (--spectrum-spacing-100 );
146
140
}
147
141
}
148
142
149
143
.spectrum-CoachMark-title {
150
- color : var (--spectrum-coarchmark -title-color );
151
- font-size : var (--spectrum-coachmark-title-text-size );
152
- font-weight : var (--spectrum-coachmark-title-text-font-weight );
153
- font-family : var (--spectrum-coachmark-title-font-family );
154
- font-style : var (--spectrum-coachmark-title-font-style );
155
- line-height : var (--spectrum-coachmark-title-text-line-height );
144
+ color : var (--mod-coachmark-title-color , var ( -- spectrum-coachmark -title-color) );
145
+ font-size : var (--mod-coachmark-title-text-size , var ( -- spectrum-coachmark-title-text-size) );
146
+ font-weight : var (--mod-coachmark-title-text-font-weight , var ( -- spectrum-coachmark-title-text-font-weight) );
147
+ font-family : var (--mod-coachmark-title-font-family , var ( -- spectrum-coachmark-title-font-family) );
148
+ font-style : var (--mod-coachmark-title-font-style , var ( -- spectrum-coachmark-title-font-style) );
149
+ line-height : var (--mod-coachmark-title-text-line-height , var ( -- spectrum-coachmark-title-text-line-height) );
156
150
margin-block-end : 0 ;
157
151
}
158
152
159
153
.spectrum-CoachMark-step {
160
154
justify-self : start;
161
- color : var (--spectrum-coachmark-step-color );
162
- font-size : var (--spectrum-coachmark-step-text-size );
163
- font-weight : var (--spectrum-coachmark-step-text-font-weight );
164
- font-style : var (--spectrum-coachmark-step-font-style );
165
- line-height : var (--spectrum-coachmark-step-text-line-height );
155
+ color : var (--mod-coachmark-step-color , var ( -- spectrum-coachmark-step-color) );
156
+ font-size : var (--mod-coachmark-step-text-size , var ( -- spectrum-coachmark-step-text-size) );
157
+ font-weight : var (--mod-coachmark-step-text-font-weight , var ( -- spectrum-coachmark-step-text-font-weight) );
158
+ font-style : var (--mod-coachmark-step-font-style , var ( -- spectrum-coachmark-step-font-style) );
159
+ line-height : var (--mod-coachmark-step-text-line-height , var ( -- spectrum-coachmark-step-text-line-height) );
166
160
white-space : nowrap;
167
- margin-block-end : calc (
168
- var (--spectrum-coachmark-step-step-to-bottom ) -
169
- var (--spectrum-coachmark-padding )
170
- );
161
+ margin-block-end : calc (var (--mod-coachmark-step-step-to-bottom , var (--spectrum-coachmark-step-step-to-bottom )) - var (--mod-coachmark-padding , var (--spectrum-coachmark-padding )));
171
162
}
0 commit comments