Skip to content

Commit

Permalink
fix: #7013 Fix RadioButton appearing without tailwind style (#7047)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcko authored Aug 14, 2024
1 parent e99a280 commit 33fede6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion components/doc/radiobutton/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ const Tailwind = {
root: {
className: classNames('relative inline-flex cursor-pointer select-none align-bottom', 'w-6 h-6')
},
input: ({ props }) => ({
input: {
className: classNames(
'absolute appearance-none top-0 left-0 size-full p-0 m-0 opacity-0 z-10 outline-none cursor-pointer'
),
},
box: ({ props }) => ({
className: classNames(
'flex justify-center items-center',
'border-2 w-6 h-6 text-gray-700 rounded-full transition duration-200 ease-in-out',
Expand Down
5 changes: 4 additions & 1 deletion components/lib/passthrough/tailwind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,10 @@ const Tailwind = {
root: {
className: classNames('relative inline-flex cursor-pointer select-none align-bottom', 'w-6 h-6')
},
input: ({ props }) => ({
input: {
className: classNames('absolute appearance-none top-0 left-0 size-full p-0 m-0 opacity-0 z-10 outline-none cursor-pointer')
},
box: ({ props }) => ({
className: classNames(
'flex justify-center items-center',
'border-2 w-6 h-6 text-gray-700 rounded-full transition duration-200 ease-in-out',
Expand Down

0 comments on commit 33fede6

Please sign in to comment.