Skip to content

feat(InviteUserModal): fix modal layout and add dark mode support#61

Merged
garrity-miepub merged 2 commits intomainfrom
feature/invite-user-modal-fixes
Feb 3, 2026
Merged

feat(InviteUserModal): fix modal layout and add dark mode support#61
garrity-miepub merged 2 commits intomainfrom
feature/invite-user-modal-fixes

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

Modal Structure:

  • Import and use ModalBody component for proper padding/spacing
  • Content now properly wrapped: ModalHeader → ModalBody → ModalFooter

Dark Mode Support:

  • Replace bg-gray-50/dark:bg-gray-800 with bg-muted token
  • Replace text-gray-/dark:text-gray- with text-foreground/text-muted-foreground
  • Textarea uses border-input, bg-background, text-foreground
  • Focus ring uses focus:ring-primary instead of hardcoded blue
invite-user-modal.mov

Modal Structure:
- Import and use ModalBody component for proper padding/spacing
- Content now properly wrapped: ModalHeader → ModalBody → ModalFooter

Dark Mode Support:
- Replace bg-gray-50/dark:bg-gray-800 with bg-muted token
- Replace text-gray-*/dark:text-gray-* with text-foreground/text-muted-foreground
- Textarea uses border-input, bg-background, text-foreground
- Focus ring uses focus:ring-primary instead of hardcoded blue
Copilot AI review requested due to automatic review settings February 3, 2026 03:53
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 3, 2026

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6432743
Status: ✅  Deploy successful!
Preview URL: https://69b3290f.ui-6d0.pages.dev
Branch Preview URL: https://feature-invite-user-modal-fi.ui-6d0.pages.dev

View logs

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the InviteUserModal component by adding proper modal structure using ModalBody and implementing dark mode support through design system tokens.

Changes:

  • Import and use ModalBody component for proper content padding and spacing
  • Replace hardcoded dark mode color classes with design system tokens (bg-muted, text-foreground, text-muted-foreground, border-input)
  • Update focus ring styling to use primary color token instead of hardcoded blue

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@garrity-miepub garrity-miepub marked this pull request as ready for review February 3, 2026 03:56
Stories Structure:
- Convert from render-based to args-based stories for better docs integration
- Add decorator with transform: translateZ(0) to contain fixed-position modal
- Change layout from 'centered' to 'fullscreen' for proper modal rendering
- Increase container height to 700px to show full modal content

Dark Mode Support:
- Modal now properly inherits theme on docs page
- Works with both light and dark mode via inline rendering

Storybook Improvements:
- Add comprehensive argTypes with descriptions
- Remove unused interactive wrapper components
- Stories use args for better controls panel integration
@garrity-miepub garrity-miepub force-pushed the feature/invite-user-modal-fixes branch from dc384b1 to 6432743 Compare February 3, 2026 03:57
@garrity-miepub garrity-miepub merged commit 3f77b92 into main Feb 3, 2026
10 checks passed
@garrity-miepub garrity-miepub deleted the feature/invite-user-modal-fixes branch February 3, 2026 04:02
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