Skip to content

Gallery multiply breakpoints options configuration doesn't work properly because of mediaCheck triggering exit media query function on page load #29933

Closed
@Januszpl

Description

@Januszpl

Preconditions (*)

  1. Magento 2.3 / 2.4-develop
  2. Multiply breakpoints configured with custom options in [your theme]/etc/view.xml

Steps to reproduce (*)

  1. Define more than one breakpoints with custom options
    <vars module="Magento_Catalog">
        <var name="breakpoints">
            <var name="desktop">
                <var name="conditions">
                    <var name="min-width">1024px</var>
                </var>
                <var name="options">
                    <var name="options">
                        <var name="navdir">vertical</var>
                    </var>
                </var>
            </var>
            <var name="mobile">
                <var name="conditions">
                    <var name="max-width">767px</var>
                </var>
                <var name="options">
                    <var name="options">
                        <var name="nav">dots</var>
                    </var>
                </var>
            </var>
        </var>
    </vars>
  1. Set mobile screen size
  2. Load page

Expected result (*)

Gallery should have "dots" navigation.

Actual result (*)

Gallery have "thumbs" navigation.

Severity: S2 - S4

Metadata

Metadata

Assignees

Labels

Component: ThemeFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions