Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.4k stars 1.98k forks source link

JITM 'dismiss' cross icon not showing up. #79602

Closed PZ01 closed 1 week ago

PZ01 commented 1 year ago

I implemented a dismissable JITM in the jitm-engine class. Upon viewing it, I did not see any 'X' mark. I inspected the element and did see a cross-hair icon label in the HTML. I suspect something is wrong with the resource URL path.

image

I was on a private browsing session.

image
jeherve commented 1 year ago

I'll move this issue to the Calypso repo, since this specific JITM was built in Calypso: https://github.com/Automattic/wp-calypso/tree/233ac1ad7ed0a8638b095a5aaa9f61f11227ebf7/client/blocks/jitm

dpasque commented 1 year ago

Reproduced: Something is off with the styling for these JITM sidebar banners in Calypso. This only affects dismissable ones (like certain upsells and domain sale notifications). This also is unique to Calypso styles -- if you view in wp-admin the styling is just fine!

Screenshot 2023-07-19 at 9 38 08 AM

Also worth noting: it's still a button and you can click on it to dismiss it!

I'm going to start this at High priority... This affects basically everyone, and I could see some people getting mad that they can't dismiss these.

dpasque commented 1 year ago

Sending to MarTech as this is upsell/JITM related.

PZ01 commented 1 year ago

Reproduced: Something is off with the styling for these JITM sidebar banners in Calypso. This only affects dismissable ones (like certain upsells and domain sale notifications). This also is unique to Calypso styles -- if you view in wp-admin the styling is just fine!

Screenshot 2023-07-19 at 9 38 08 AM

Also worth noting: it's still a button and you can click on it to dismiss it!

I'm going to start this at High priority... This affects basically everyone, and I could see some people getting mad that they can't dismiss these.

Thanks Dan, and yes indeed someone did get mad before I made it dismissable, which remains case in point that when these are hitting paying customers and they can't remove them, it causes friction. p1689120996954219/1689120912.481419-slack-C029GN3KD

cuemarie commented 11 months ago

📌 ACTIONS

PZ01 commented 11 months ago

👋 That issue had to do with email campaign promotion fixes that were solely on the back-end.

I just pulled the latest calypso and the icon remains problematic:

image
cuemarie commented 11 months ago

@PZ01 Got it - thank you for clearing up my understanding!

cuemarie commented 11 months ago

📌 ACTIONS

katinthehatsite commented 1 week ago

It seems that the issue is resolved for now - testing on my end now, I can see the X visible on the notices where it is added:

Screenshot 2024-09-05 at 10 39 04 AM

On some notices, the button is not present at all but it looks like this is done by design:

Screenshot 2024-09-05 at 10 42 04 AM

I see that some notices do not have is-dismissable prop so they don't have the cross to remove them. The ones that have the prop, display the cross correctly:

Screenshot 2024-09-05 at 10 53 08 AM

Since it can't be reproduced anymore, I will close this issue. Feel free to re-open if the issue happens again!