-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add a bit more color to the promo display. #2770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I noted some template changes, but mostly so we can start digging out of UI debt. The changes aren't important to work in here as this is admin facing.
{{ promo.report_html_text|safe }} | ||
</div> | ||
|
||
<br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this is not necessarily an issue that requires changes, but the main problem with our UI and templates is lack of consistency, so I'll point out that:
- The styling you are looking for is closer to a
<dl>
, instead of recreating this with a paragraph tag <strong>
isn't used semantically here. The<strong>
text here is structural and should be handled with a general list that styles the label and value in a generic way.- We should never need
<br>
in our templates, whitespace should be left to CSS. We can't remove<br>
using CSS, so this makes for noise when restyling.
This is just informational. I'm still planning out what a UI overhaul will be, I'd like to stop collecting debt here in the meantime though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went ahead and updated it 👍
This is primarily used so we can send email to folks using alabaster, and other themes we might want to display ads on. This will allow us to give people fair warning before we put ads on their docs.
87ad9fe
to
c6bf143
Compare
This adds: