Opened 10 years ago
Closed 9 years ago
#630 closed task (blessed) (fixed)
Improve the design of the callout boxes (shortcodes)
Reported by: | samuelsidler | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | lowest | |
Component: | Handbooks | Keywords: | ui-feedback has-patch needs-testing needs-ui has-screenshots |
Cc: |
Description
We should have a designer look through the design of our callout boxes and improve them. That probably means changing the colors slightly, change the icon of the "alert" one (to what? dunno), and removing the default text so we can use them more generically. For example, I want to use "Alert" sometimes as a Draft box.
Attachments (2)
Change History (10)
#3
@
10 years ago
- Keywords has-patch needs-testing added
One other thing to note is that I was noticing extra <p> tags being generated when testing this locally, in two places:
- Wrapping the entire <div class="callout"> element.
- Empty <p> tags being inserted in weird places.
I wouldn't think my modifications to the shortcode PHP would cause this (just removed the icon <div> and replaced with a CSS background image), so I think it may have been something wonky caused by manually copying and pasting header and footer code into my local files. Anyhow, I suggest someone else check this code with an install they know to be working properly. Thanks.
This ticket was mentioned in Slack in #meta by sam. View the logs.
9 years ago
#6
@
9 years ago
- Owner set to coffee2code
- Status changed from new to accepted
I've attached meta-630.comparison.png which compares the current appearance versus the changes implemented as part of selectively applying parts of 630.diff.
The changes to the existing implementation are:
- Remove of the prefix denoting the type of callout box being shown.
- Use of dashicons fully through CSS rather than via HTML placeholder.
- Some padding tweaks.
- Since @samuelsidler requested a change of the icon for the alert box. I took the liberty of previewing use of the flag dashicon (https://developer.wordpress.org/resource/dashicons/#flag). We could also consider the sticky dashicon (https://developer.wordpress.org/resource/dashicons/#sticky) as well. Either is better than the current post icon. I think the former is the best given our options.
My tweaks from 630.diff:
- Explicit top position for call-out.
- Restore removal of margin-bottom for p tags in a callout box, and add margin-top for subsequent paragraphs.
- Did not enact any color changes (@samuelsidler has indicted the existing colors have since been changed as desired).
Alert: This is a draft.
Seems pretty straightforward to me.