Skip to content
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

Fix style of banner #3920

Conversation

edumoreira1506
Copy link

@edumoreira1506 edumoreira1506 commented Feb 17, 2020

References

Objectives

This PR fixes banner style in all pages. You can see all broken styles in #3639

Visual Changes

Before of the changes, in home page, the banner was outside of site container and now:
Screenshot from 2020-02-17 15-09-22

Before of the changes, in help page, the banner wasn't bottom margin, and this caused an impression that banner was together with default banner of help page, and now:
Screenshot from 2020-02-12 10-44-11

Before of the changes, in budgets page, banner was broken, and now:
Screenshot from 2020-02-17 15-09-41

@javierm javierm added the Bug label Feb 18, 2020
@javierm javierm added this to Reviewing in Roadmap via automation Feb 18, 2020
@javierm javierm added this to Reviewing in Consul Democracy Mar 11, 2020
Copy link
Member

@javierm javierm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edumoreira1506 Thank you very much for contributing to CONSUL 😄.

Sorry for the late review 🙏. We were preparing version 1.1 when this pull request was opened, and after that it's taken us a while to catch up.

I've left a few comments. Let me know what you think! Also, don't be afraid to disagree with what I say 😉.

.banner {
margin-bottom: 2rem;

&__container {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding an extra container, do we get the same results if we apply these styles to the a tag inside the .banner? If so, I'd rather go for it; we already have too many div tags in our views 😅.

@@ -9,7 +9,7 @@
<% end %>

<% if current_budget.present? %>
<div id="budget_heading" class="expanded budget no-margin-top">
<div id="budget_heading" class="expanded budget">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note removing this class will add an extra margin when there's no banner.

Also, since now we're adding a bottom margin to the banner, IMHO this change isn't necessary 🤔. What do you think?

@@ -0,0 +1,11 @@
.banner {
margin-bottom: 2rem;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is tricky because the margin is needed in some sections but not in other sections 🤔. I guess it's better to have too much margin in places like the proposals section rather than too little in places like the help page, so I'm fine with this change 👍.

@javierm javierm moved this from Reviewing to Doing in Consul Democracy Apr 7, 2020
@javierm javierm self-assigned this Apr 7, 2020
@javierm
Copy link
Member

javierm commented Jul 28, 2020

Hi, @edumoreira1506 😄.

Are you still working on this pull request? 🤔

@javierm
Copy link
Member

javierm commented Aug 10, 2020

Due to inactivity, closing in favor of #4080.

@javierm javierm closed this Aug 10, 2020
@javierm javierm removed this from Doing in Consul Democracy Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken banner styles for some pages
2 participants