Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode button #1874

Merged
merged 11 commits into from
Feb 22, 2024
Merged

Dark mode button #1874

merged 11 commits into from
Feb 22, 2024

Conversation

GraceGardner
Copy link
Contributor

@GraceGardner GraceGardner commented Feb 20, 2024

Description & motivation 💭

Added new button styles to button component

Screenshots (if applicable) 📸

Design Considerations 🎨

https://www.figma.com/file/LNN3Cu8Akqb240WmJmbtsS/Holocene?node-id=3789%3A216118&mode=dev
Will confirm that this looks okay with Ash.

Testing 🧪

How was this tested 👻

WILL UPDATE TESTS ONCE DESIGN CONFIRMS THESE ARE GOOD TO GO

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Please check story book and make sure buttons look like they do in figma designs

Checklists

Light

  • primary
  • secondary
  • destructive
  • ghost

Dark

  • primary
  • secondary
  • destructive
  • ghost

Draft Checklist

Merge Checklist

Issue(s) closed

dark mode buttons

Docs

Any docs updates needed?

@GraceGardner GraceGardner requested review from rossedfort and a team as code owners February 20, 2024 21:32
Copy link

vercel bot commented Feb 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2024 9:35pm

Copy link
Contributor

@rossedfort rossedfort left a comment

Choose a reason for hiding this comment

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

Looks good, just a few comments!

src/lib/theme/plugin.ts Outdated Show resolved Hide resolved
src/lib/holocene/button.svelte Outdated Show resolved Hide resolved
src/lib/theme/colors.ts Outdated Show resolved Hide resolved
src/lib/theme/colors.ts Outdated Show resolved Hide resolved
@rossedfort
Copy link
Contributor

I noticed the designs don't specify a shadow for hover state, only focus, but I think we can follow up on this later.
Screenshot 2024-02-22 at 11 15 04 AM

@rossedfort rossedfort self-requested a review February 22, 2024 18:27
Copy link
Contributor

@rossedfort rossedfort left a comment

Choose a reason for hiding this comment

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

Noticed ghost button focus state is broken
Screenshot 2024-02-22 at 11 26 56 AM

@GraceGardner
Copy link
Contributor Author

Noticed ghost button focus state is broken Screenshot 2024-02-22 at 11 26 56 AM

Oh no! Good catch. Thanks Ross!

@GraceGardner GraceGardner merged commit 4f258a2 into main Feb 22, 2024
11 checks passed
@GraceGardner GraceGardner deleted the dark-mode-button branch February 22, 2024 21:51
rossedfort pushed a commit that referenced this pull request Feb 23, 2024
* update styling for destructive button

* add standard button styling

* secondary button

* ghost button

* make updates based on comments

* update border

* fix the focus states and remove shadow from hover

* update tests

* destructive remove shadow add hover bg

* update snapshots
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.

3 participants