@@ -56,7 +56,7 @@ export class UserCard extends LitElement {
5656 document . body . style . overflow = '' ;
5757 }
5858
59- protected renderLoading = ( ) => html `<p> Loading...</ p> ` ;
59+ protected renderLoading = ( ) => html `<p class = "message" > Loading ...</ p> ` ;
6060
6161 protected copyUserIdToClipboard = async ( ) => {
6262 if ( this . userId ) {
@@ -79,8 +79,8 @@ export class UserCard extends LitElement {
7979 }
8080 } ;
8181
82- protected renderError = ( ) => html `<p class= "error" >
83- Error during while loading your membership details . Please retry later .
82+ protected renderError = ( ) => html `<p class= "message error" >
83+ An error during while loading your membership details . Please retry later .
8484 </ p> ` ;
8585
8686 protected renderRegistrationCard = ( ) => html `
@@ -165,7 +165,6 @@ export class UserCard extends LitElement {
165165 --azc-primary : linear-gradient (135deg , # de471d 0% , # ff6b3d 100% );
166166 --azc-border-radius : 16px ;
167167 }
168-
169168 .member-card-link {
170169 background : none;
171170 border : none;
@@ -181,16 +180,13 @@ export class UserCard extends LitElement {
181180 font-family : inherit;
182181 font-size : inherit;
183182 }
184-
185183 .member-card-link : hover {
186184 background : rgba (255 , 255 , 255 , 0.1 );
187185 }
188-
189186 .card-icon {
190187 display : inline-block;
191188 fill : currentColor;
192189 }
193-
194190 .modal-overlay {
195191 position : fixed;
196192 top : 0 ;
@@ -205,7 +201,6 @@ export class UserCard extends LitElement {
205201 padding : 2rem ;
206202 box-sizing : border-box;
207203 }
208-
209204 .modal-content {
210205 position : relative;
211206 max-width : 640px ;
@@ -214,7 +209,6 @@ export class UserCard extends LitElement {
214209 background : var (--azc-primary );
215210 border-radius : var (--azc-border-radius , 16px );
216211 }
217-
218212 .close-button {
219213 position : absolute;
220214 top : 1rem ;
@@ -234,11 +228,9 @@ export class UserCard extends LitElement {
234228 color : # fff ;
235229 transition : background 0.2s ;
236230 }
237-
238231 .close-button : hover {
239232 background : rgba (255 , 255 , 255 , .4 );
240233 }
241-
242234 svg {
243235 fill : currentColor;
244236 width : 100% ;
@@ -352,6 +344,9 @@ export class UserCard extends LitElement {
352344 vertical-align : middle;
353345 color : # fff ;
354346 }
347+ .message {
348+ padding : 1em ;
349+ }
355350 .visually-hidden {
356351 position : absolute;
357352 width : 1px ;
0 commit comments