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

[BUG] - Button #3799

Closed
shubhammr21 opened this issue Sep 24, 2024 · 2 comments
Closed

[BUG] - Button #3799

shubhammr21 opened this issue Sep 24, 2024 · 2 comments

Comments

@shubhammr21
Copy link

NextUI Version

2.4.8

Describe the bug

In button's ghost variant, with color danger, I am expecting the dark text in light mode but it stays white, in dark mode, text is white. it is working fine with other color values but not with danger.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Set theme by following nextui docs in next js project
  2. added this button
<Button
  color="danger"
  variant="ghost"
  startContent={<IconBrandGoogle />}
>
  Sign in
</Button>
  1. set theme to light mode

Expected behavior

As a user, I expected black text in light mode behavior but i am seeing white text in button

Screenshots or Videos

image
image

Operating System Version

  • MacOS

Browser

Chrome

Copy link

linear bot commented Sep 24, 2024

ENG-1395 [BUG] - Button

@wingkwong
Copy link
Member

Fixed in #3764. you may use canary version at this moment or add data-[hover=true]:!text-danger-foreground.

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

No branches or pull requests

2 participants