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

fix: Some Tailwind classes for panelmenu #5207

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions components/lib/passthrough/tailwind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,9 @@ const Tailwind = {
},
panelmenu: {
root: 'w-full md:w-[25rem]',
panel: 'mb-1',
panel: {
className: classNames('mb-1')
},
header: {
className: classNames(
'outline-none',
Expand All @@ -2002,9 +2004,15 @@ const Tailwind = {
headeraction: {
className: classNames('flex items-center select-none cursor-pointer relative no-underline', 'text-gray-700 dark:text-white/80 p-5 font-bold')
},
submenuicon: 'mr-2',
headericon: 'mr-2',
menucontent: 'py-1 border border-t-0 border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 rounded-t-none rounded-br-md rounded-bl-md',
headersubmenuicon: {
className: classNames('mr-2')
},
headericon: {
className: classNames('mr-2')
},
menucontent: {
className: classNames('py-1 border border-t-0 border-gray-300 dark:border-blue-900/40 bg-white dark:bg-gray-900 text-gray-700 dark:text-white/80 rounded-t-none rounded-br-md rounded-bl-md')
},
menu: {
className: classNames('outline-none', 'm-0 p-0 list-none')
},
Expand All @@ -2020,8 +2028,15 @@ const Tailwind = {
'hover:bg-gray-200 dark:hover:bg-gray-800/80 hover:text-gray-700 dark:hover:text-white/80' // Hover
)
},
icon: 'mr-2',
submenu: 'p-0 pl-4 m-0 list-none',
icon: {
className: classNames('mr-2')
},
submenu: {
className: classNames('p-0 pl-4 m-0 list-none')
},
submenuicon: {
className: classNames('mr-2')
},
transition: TRANSITIONS.toggleable
},
steps: {
Expand Down
Loading