Skip to content

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

Merged
merged 10 commits into from
Apr 17, 2017
Merged

Conversation

ericholscher
Copy link
Member

@ericholscher ericholscher commented Mar 31, 2017

This adds:

  • Cleaned up promo displays
  • Promo filtering by theme

@ericholscher ericholscher added PR: work in progress Pull request is not ready for full review PR: hotfix Pull request applied as hotfix to release labels Mar 31, 2017
@ericholscher ericholscher requested a review from agjohnson April 12, 2017 18:57
@ericholscher ericholscher added PR: ready for review and removed PR: hotfix Pull request applied as hotfix to release PR: work in progress Pull request is not ready for full review labels Apr 12, 2017
Copy link
Contributor

@agjohnson agjohnson left a 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>
Copy link
Contributor

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.

Copy link
Member Author

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 👍

@ericholscher ericholscher force-pushed the promo-filter-updates branch from 87ad9fe to c6bf143 Compare April 17, 2017 21:19
@ericholscher ericholscher merged commit 817fe49 into master Apr 17, 2017
@agjohnson agjohnson deleted the promo-filter-updates branch April 17, 2017 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants