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

Add preview of questions to an election #6749

Merged
merged 2 commits into from
Nov 3, 2020

Conversation

slickepinne
Copy link
Contributor

🎩 What? Why?

This PR adds an accordion to an election page that shows the related questions and answers.

📌 Related Issues

Testing

Go to the public elections module and click on one of the elections. That page shows an accordion below the election information.

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

By default, the accordion is collapsed:
accordion collapsed

You can see the answers when you click on the question:
accordion expanded

♥️ Thank you!

<p>
<%= t(".questions_preview.description") %>:
</p>
<ul class="accordion js-sortable mb-m evote__preview"
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like the .js-sortable class is not used to style nor give some functionality, so I'd suggest removing it:

Suggested change
<ul class="accordion js-sortable mb-m evote__preview"
<ul class="accordion mb-m evote__preview"

leio10
leio10 previously approved these changes Oct 29, 2020
Copy link
Contributor

@leio10 leio10 left a comment

Choose a reason for hiding this comment

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

👍

@tramuntanal
Copy link
Contributor

Hi @slickepinne can you please give feedback to @agustibr 's suggestion? and ping us when the PR is ready?

Copy link
Contributor

@tramuntanal tramuntanal left a comment

Choose a reason for hiding this comment

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

LGTM bug waiting for feedback to Agusti's comment

@slickepinne
Copy link
Contributor Author

Hi @slickepinne can you please give feedback to @agustibr 's suggestion? and ping us when the PR is ready?

I'm on it! 👍

@slickepinne
Copy link
Contributor Author

@tramuntanal I added the changes. 😄 Hope it's okay, now.

@tramuntanal tramuntanal merged commit 8684b4e into develop Nov 3, 2020
@tramuntanal tramuntanal deleted the feature/add-election-information branch November 3, 2020 07:05
@mrcasals mrcasals added module: elections type: feature PRs or issues that implement a new feature labels Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: elections type: feature PRs or issues that implement a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

View the election information as visitor
5 participants