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: dashboard filter modal should not be available in small screen #1567

Merged
merged 5 commits into from
Feb 25, 2021

Conversation

jenniferarnesen
Copy link
Collaborator

@jenniferarnesen jenniferarnesen commented Feb 24, 2021

Adds a separate element in the FilterBadge for small screen that does not have the click action, so that the filter modal cannot be opened while in small screen. (video not included, but the cypress tests covers the scenario)

image

2 new cypress tests added - one where it is possible to open the filter modal, and one where it isn't possible.

Jest unit test added to check that Filter badge has the correct text on it.

const filter = {
id: 'ponies',
name: 'Ponies',
values: [{ name: 'Rainbow Dash' }, { name: 'Twilight Sparkle' }],
Copy link
Contributor

@martinkrulltott martinkrulltott Feb 25, 2021

Choose a reason for hiding this comment

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

Now I finally know who added all of the my little pony names to DV 🦄 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🦄

@jenniferarnesen jenniferarnesen enabled auto-merge (squash) February 25, 2021 13:34
@jenniferarnesen jenniferarnesen merged commit 53db918 into master Feb 25, 2021
@jenniferarnesen jenniferarnesen deleted the fix/no-filter-modal-in-portrait branch February 25, 2021 13:35
dhis2-bot added a commit that referenced this pull request Feb 25, 2021
## [31.12.7](v31.12.6...v31.12.7) (2021-02-25)

### Bug Fixes

* dashboard filter modal should not be available in small screen ([#1567](#1567)) ([53db918](53db918))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 31.12.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants