primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.97k stars 1.06k forks source link

Checkbox: Upgrading to 10.6.2 with Tailwind theme breaks component #6346

Closed gcko closed 7 months ago

gcko commented 7 months ago

Describe the bug

After updating PrimeReact from version 10.5.1 to 10.6.2 the Checkbox component is no longer properly styled and the styling breaks even more when clicked

It also shows a visible checkbox behind the checkbox. Checking the checkbox makes it change its state.

This is an image of it prior to being selected Screenshot 2024-04-09 at 19 31 34

This is an image of it after being selected Screenshot 2024-04-09 at 19 31 37

This Can be demonstrated on the live documentation page: Checkbox > Theming > Unstyled

Reproducer

No response

PrimeReact version

10.6.2

React version

18.x

Language

TypeScript

Build / Runtime

Next.js

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to the documentation page on version 10.6.2
  2. Checkbox > Theming > Unstyled > Tailwind
  3. Try clicking the checkbox to toggle its state
  4. Notice the visible checkbox

Expected behavior

The styling should be consistent with the default styled variant of the Checkbox component

melloware commented 7 months ago

Thanks for the PR!