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(filter-toggle-button): make bigModeMediaQuery optional #412

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregtyler
Copy link
Contributor

Currently if bigModeMediaQuery isn't set then the component will always initialise in "small" mode, where the filter bar is hidden, even if startHidden is set to false or not specified.

This change makes bigModeMediaQuery optional so that, if it isn't set, startHidden is adhered to.

bigModeMediaQuery still takes priority over startHidden if both are set.

BREAKING CHANGE: If you specify neither bigModeMediaQuery nor startHidden, the filter will now be initially open on larger screens. To avoid this behaviour, add the startHidden: true property.

Currently if `bigModeMediaQuery` isn't set then the
component will always initialise in "small" mode, where the
filter bar is hidden, even if `startHidden` is set to false or
not specified.

This change makes `bigModeMediaQuery` optional so that,
if it isn't set, `startHidden` is adhered to.

`bigModeMediaQuery` still takes priority over `startHidden`
if both are set.

BREAKING CHANGE: If you specify neither
`bigModeMediaQuery` nor `startHidden`, the filter will now
be initially open on larger screens. To avoid this behaviour,
add the `startHidden: true` property.
@gregtyler gregtyler requested a review from a team as a code owner November 22, 2022 09:27
@gregtyler gregtyler added staging:request Add this label to request a staging environment for a pull request and removed staging:request Add this label to request a staging environment for a pull request labels Nov 25, 2022
@github-actions
Copy link

github-actions bot commented Dec 1, 2022

🚀 Deploying to staging environment

@github-actions github-actions bot added staging:active Automatic label added when the PR is on the staging environment and removed staging:request Add this label to request a staging environment for a pull request labels Dec 1, 2022
@github-actions github-actions bot removed the staging:active Automatic label added when the PR is on the staging environment label Dec 19, 2022
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.

None yet

1 participant