Skip to content

Fixes dialog style - #69

Merged
Sam Beveridge (00salmon) merged 2 commits into
masterfrom
fix-dialog-style
Sep 2, 2026
Merged

Sam Beveridge (00salmon) merged 2 commits into
masterfrom
fix-dialog-style

Conversation

@00salmon

@00salmon Sam Beveridge (00salmon) commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Description of the change

Fixes an issue where Shopify themes sometimes have global overrides to margin, causing our popup widgets to be misplaced

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation or Development tools (readme, specs, tests, code formatting)

Links

  • Jira issue number: (PUT IT HERE)
  • Process.st launch checklist: (PUT IT HERE)

Checklists

Development

  • Prettier was run (if applicable)
  • The behaviour changes in the pull request are covered by specs
  • All tests related to the changed code pass in development

Paperwork

  • This pull request has a descriptive title and information useful to a reviewer
  • This pull request has a Jira number
  • This pull request has a Process.st launch checklist

Code review

  • Changes have been reviewed by at least one other engineer
  • Security impacts of this change have been considered

@00salmon
Sam Beveridge (00salmon) requested review from a team and a balanced review from Copilot September 2, 2026 17:54
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

A preview of is uploaded and can be seen here:

✨ https://saasquatch.github.io/squatch-js/pull/69 ✨

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

size-limit report 📦

Path Size
dist/squatch.js 13 KB (+0.06% 🔺)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

The focused fix is covered by updated unit and feature expectations with no unresolved issues.

Pull request overview

Fixes popup dialog positioning when Shopify themes override global margins.

Changes:

  • Adds margin: auto to popup dialogs.
  • Updates unit and feature expectations.
File summaries
File Description
test/tests/PopupWidget.test.ts Verifies the inline margin style.
test/specs/PopupWidget.feature Updates expected popup styles.
src/widgets/PopupWidget.ts Explicitly centers popup dialogs.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@00salmon
Sam Beveridge (00salmon) merged commit 8594295 into master Sep 2, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants