nextui
nextui copied to clipboard
[BUG] - Ghost button with danger color - weird behaviour
NextUI Version
@nextui-org/button": "^2.0.38
Describe the bug
ghost button in combination with danger color does not show the correct font color
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
- Spun up new React 18 project, installed all necessary requirements for NextUI
- Added
ghostbutton with colordanger - Added
ghostbutton with colorprimaryfor comparison - Danger button text not visible, whereas it's visible for the primary one
- Different props compared to primary button, danger button missing
data-[hover=true]:before!text-danger-foreground - Adding the missing prop makes default font visible, but on hover it's missing then
Expected behavior
Danger color button should behave the same as the primary one, showing the correct font color on default and hover state.
Screenshots or Videos
https://github.com/user-attachments/assets/c82151c3-93e6-4d2c-82ec-456e81bb5886
Operating System Version
macOS
Browser
Chrome
https://github.com/nextui-org/nextui/pull/3764
It's been fixed in above-mentioned PR. Please wait for the next release or use canary branch as a workaround.