Skip to content

Fix disappearing bg and wrong padding on widnows for reset button#4602

Open
xkello wants to merge 1 commit into
masterfrom
bugfix/fix-reset-button-losing-bg
Open

Fix disappearing bg and wrong padding on widnows for reset button#4602
xkello wants to merge 1 commit into
masterfrom
bugfix/fix-reset-button-losing-bg

Conversation

@xkello

@xkello xkello commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Description

The filter reset button's background was disappearing on hover. This caused inconsistent behavior between platforms, since mobile devices did not exhibit this issue.

What changed

  1. Added bgndColorHover and fontColorHover to the action button, since type: Tertiary had its own styling that was overriding the defaults on hover. Explicitly setting these values aligns desktop behavior with mobile.
      image

  2. Swapped the order of the if statements. Previously, type: Tertiary was checked before size: ExtraSmall, causing the margin to be set to 0 instead of the intended value. Since margins were handled per-platform rather than in shared code, this meant the button had correct margins on mobile but appeared as a circle instead of a pill shape on Windows.
      image

Behaviour

The button no longer has hover-specific styling logic, so the background no longer disappears on mouse hover. Margins are also fixed, giving the action button its intended pill shape.

image

@xkello
xkello requested a review from Withalion July 15, 2026 09:39
@github-actions

Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 70281 dmg Expires: 13/10/2026 #7028
linux Build 📬 Mergin Maps 70541 x86_64 Expires: 13/10/2026 #7054
win64 Build 📬 Mergin Maps 62301 win64 Expires: 13/10/2026 #6230
Android Build 📬 Mergin Maps 833811 APK [armeabi-v7a] Expires: 13/10/2026 #8338
📬 Mergin Maps 833811 APK [armeabi-v7a] Google Play Store #8338
Android Build 📬 Mergin Maps 833851 APK [arm64-v8a] Expires: 13/10/2026 #8338
📬 Mergin Maps 833851 APK [arm64-v8a] Google Play Store #8338
iOS Build 📬 Build number: 26.07.928011 #9280

@Withalion Withalion added this to the 2026.3.1 milestone Jul 15, 2026
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.

2 participants