ClassicPress/ClassicPress-v2

๐Ÿ’ก New notice color for block compatibility alert

Closed this issue ยท 4 comments

Context

I'm sharing this as an idea, in case others may see this useful. While testing nightly on a site with plugins that had updates it was hard to see the compatibility alert because it uses the same color as updates alert. Some people might not notice that it's a different type of alert. So it might be a good idea to introduce a different notice color dedicated to block compatibility, to help these alerts stand out from the rest of the update alerts.

Possible implemantion

Implement a new alert color and class.

Possible Solution

Introduce a new notice class .notice-compatibility.

Color: #fff5ea
Background: #ffa035

image

This is in-between warning (yellow) and error (red) notices. So it stands out, but not as bad as a red notice.

Will you be able to help with the implementation?

Yes

Another possible fix for this is to amend the classes we already use here.

Instead of:
<div class="notice inline notice-alt notice-warning">
We could use
<div class="notice inline notice-alt notice-error">

My reservation about using notice-error is that it indicates an error when something is broken. People might assume the plugin is broken and unusable. That's why I thought the middle ground between yellow and red might be suitable.

One other option is to use the original notice class by removing notice-alt. It does look different:

image

I'm ready to push the change that removes notice-alt to #73 if you agree, as that PR changes the same file.

@xxsimoxx yes please.