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

Commits on Nov 22, 2022

  1. fix(filter-toggle-button): make bigModeMediaQuery optional

    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 committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    4a714be View commit details
    Browse the repository at this point in the history