mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: update Collapse styling
This commit is contained in:
@@ -70,6 +70,7 @@ export const Collapse = ({
|
||||
variant === 'plus' && 'collapse-plus',
|
||||
bordered && 'border base-content/20 border-opacity-20 rounded-box',
|
||||
disabled && 'opacity-60 pointer-events-none',
|
||||
!open && 'w-fit',
|
||||
className
|
||||
);
|
||||
|
||||
@@ -82,7 +83,7 @@ export const Collapse = ({
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return <div>{title}</div>;
|
||||
return title;
|
||||
}, [title, subtitle]);
|
||||
|
||||
return (
|
||||
@@ -102,7 +103,7 @@ export const Collapse = ({
|
||||
role='button'
|
||||
tabIndex={0}
|
||||
className={cn(
|
||||
'collapse-title p-0',
|
||||
'collapse-title w-fit p-0',
|
||||
'focus:outline-none focus-visible:ring focus-visible:ring-primary/40',
|
||||
titleClassName
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user