Skip to content

Fix: Refine modal close buttons for perfect geometry and "Quiet Sanctuary" aesthetic - #888

Merged
devanshi14malhotra merged 1 commit into
devanshi14malhotra:mainfrom
Soura149:main
May 22, 2026
Merged

devanshi14malhotra merged 1 commit into
devanshi14malhotra:mainfrom
Soura149:main

Conversation

@Soura149

Copy link
Copy Markdown
Contributor

fixes #558
This PR addresses and resolves all requirements outlined in issue #558 .

Description:

Issue: The modal close buttons (.close-genre-modal and .modal-close-btn) were exhibiting several UI/UX bugs that deviated from our premium, minimalist aesthetic:
1.They were stretching into inconsistent oval shapes inside flex containers.
2.The hover state featured a noisy 90-degree spinning animation.
3.The hover background was harsh in light mode, and blended too much into the background in dark mode.

Changes made:

Perfect Geometry: Enforced an absolute circle by adding aspect-ratio: 1/1 and flex-shrink: 0, preventing any parent flex containers from squishing the button into an oval.
Minimalist Default State: Stripped the default background styling, making the button completely transparent until hovered.
Elegant Micro-interactions: Replaced the jarring rotate(90deg) animation with a sophisticated, physical scale(1.04) on hover and scale(0.96) on active clicks, utilizing a premium cubic-bezier transition curve.
Semantic Color Theory: Introduced a subtle, sophisticated crimson/terracotta hover state.

  • Light Mode: Uses a gentle rgba(220, 53, 69, 0.08) background with a grounded #c9302c icon to act as a "warm ember" warning of a destructive action without shouting.
  • Dark Mode: Uses a delicate ruby glow rgba(255, 99, 104, 0.12) with a #ffb3b3 icon to pop cleanly against the dark modal background.

Testing:

Verified on both index.html (Genre Modal) and library.html (Book Detail Modal).
Tested hover and active states in both Light and Dark mode ([data-theme="night"]).

Screenshots:

image

screenshot 1: this screenshot showing present ui of the genre section

image

screenshot 2: this screenshot showing the changed synergetic and geometric UI in light mode . including proper hover animation .

image

screenshot 3: this screenshot showing the changed synergetic UI in dark mode . including proper hover animation .

@netlify

netlify Bot commented May 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for bibliodrift-dm ready!

Name Link
🔨 Latest commit 6c05613
🔍 Latest deploy log https://app.netlify.com/projects/bibliodrift-dm/deploys/6a0f2d0b994a930008b30b06
😎 Deploy Preview https://deploy-preview-888--bibliodrift-dm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Soura149

Copy link
Copy Markdown
Contributor Author

hey @devanshi14malhotra ,
sorry for late submitting the PR of this issue. the basic checks are passed .
if any further issue come let me know.
thanks!!

@devanshi14malhotra
devanshi14malhotra merged commit cb9dee4 into devanshi14malhotra:main May 22, 2026
5 checks passed
@devanshi14malhotra devanshi14malhotra added level:beginner GSSoC'26 beginner level PR/issue gssoc:approved PR has been reviewed and is eligible for GSSoC points (for GSSoC'26) labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR has been reviewed and is eligible for GSSoC points (for GSSoC'26) level:beginner GSSoC'26 beginner level PR/issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ISSUE]: [UI/UX] Refinement of Modal Close Button (Geometry, Animation, and Contrast)

2 participants