Skip to content

Internal: Replace hardcoded media query with SASS variable#660

Open
rami-elementor wants to merge 1 commit into
mainfrom
hardcoded-media-query
Open

Internal: Replace hardcoded media query with SASS variable#660
rami-elementor wants to merge 1 commit into
mainfrom
hardcoded-media-query

Conversation

@rami-elementor
Copy link
Copy Markdown
Member

@rami-elementor rami-elementor commented Jun 1, 2026

✨ PR Description

1. Problem & Context

Replace hardcoded breakpoint value (767px) with SASS variable for maintainability and consistency across the theme.

2. What Changed (Where)

  • dev/scss/theme/_navigation.scss: Media query breakpoint changed from 767px to variables.$screen-sm - variables.$screen-diff expression.

3. How It Works

The hardcoded 767px is now computed dynamically using SASS variables, ensuring breakpoint calculations stay synchronized with the theme's variable definitions. Functionality remains identical.

4. Risks

None. Pure refactor with no behavioral change—assumes variable values produce equivalent computed breakpoint.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant