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 poll answer images not being displayed #4077

Merged
merged 1 commit into from
Aug 13, 2020
Merged

Fix poll answer images not being displayed #4077

merged 1 commit into from
Aug 13, 2020

Conversation

javierm
Copy link
Member

@javierm javierm commented Aug 7, 2020

References

Objectives

Fix a bug which caused poll question answer images not to be displayed.

Notes

In the past, we used to have an animation effect when switching from one image to a different one. However, we've had to disable it because after the mentioned foundation-rails update with our current styles the animation effect looks really bad 😌.

@javierm javierm self-assigned this Aug 7, 2020
@javierm javierm added this to Reviewing in Consul Democracy via automation Aug 7, 2020
@taitus taitus self-assigned this Aug 10, 2020
Consul Democracy automation moved this from Reviewing to Testing Aug 10, 2020
After updating foundation-rails in commit 58071fd, the orbit slider
stopped working properly. That's because the `.orbit-slide` elements now
use a `position: absolute` rule, and so our rule for `.orbit-container`
elements making their height 100% (which we added in order to be able to
add images with different heights) makes them have a height of 0px,
since now the `.orbit-slide` elements are not part of the document flow
anymore.

Making the `.orbit-slide` elements have relative position fixes this
issue, but introduces a different one, producing a really bad-looking
animation when changing a slide.

So we're disabling the animation as well in order to avoid this jump.

This change also fixes another issue introduced in commit 58071fd which
caused slide controls to stop working when changing slides back and
forth.
@javierm javierm merged commit 13e70ed into master Aug 13, 2020
Consul Democracy automation moved this from Testing to Release 1.2.0 Aug 13, 2020
@javierm javierm deleted the fix_orbit branch August 13, 2020 16:27
@javierm javierm removed the 1.2 label Aug 13, 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 orbit slider on voting
2 participants