@@ -130,7 +130,7 @@ const ComponentShowcase: React.FC = () => {
130130 onClick = { ( ) => setActiveTab ( tab . id ) }
131131 className = { `flex items-center space-x-2 px-4 py-2 rounded-md transition-colors ${
132132 activeTab === tab . id
133- ? 'bg-primary-600 text-white'
133+ ? 'bg-primary-600 text-white dark:bg-primary-500 dark:text-white '
134134 : 'text-text-secondary hover:text-text-primary'
135135 } `}
136136 >
@@ -179,7 +179,7 @@ const ComponentShowcase: React.FC = () => {
179179 >
180180 < Modal . Header showCloseButton onClose = { ( ) => setFullscreenModalOpen ( false ) } >
181181 < div className = "flex items-center gap-3" >
182- < div className = "w-8 h-8 bg-warning-500 rounded-full flex items-center justify-center" >
182+ < div className = "w-8 h-8 bg-warning-500 dark:bg-warning-400 rounded-full flex items-center justify-center" >
183183 < Icon name = "ArrowsPointingOutIcon" className = "w-4 h-4 text-white" />
184184 </ div >
185185 < div >
@@ -241,8 +241,8 @@ const ComponentShowcase: React.FC = () => {
241241 </ div >
242242 </ div >
243243
244- < div className = "p-6 bg-primary-50 border border-primary-200 rounded-lg" >
245- < h4 className = "font-medium text-primary-800 mb-2" > Implementation Example</ h4 >
244+ < div className = "p-6 bg-primary-50 dark:bg-primary-900/20 border border-primary-200 dark:border-primary-700 rounded-lg" >
245+ < h4 className = "font-medium text-primary-800 dark:text-primary-200 mb-2" > Implementation Example</ h4 >
246246 < Code className = "text-sm" >
247247{ `<Modal
248248 isOpen={isFullscreenOpen}
@@ -783,11 +783,11 @@ const MoleculesTab: React.FC<MoleculesTabProps> = ({ setModalOpen, setFullscreen
783783 </ div >
784784 </ div >
785785
786- < div className = "p-4 bg-primary-50 border border-primary-200 rounded-lg mb-4" >
787- < p className = "text-sm text-primary-800" >
786+ < div className = "p-4 bg-primary-50 dark:bg-primary-900/20 border border-primary-200 dark:border-primary-700 rounded-lg mb-4" >
787+ < p className = "text-sm text-primary-800 dark:text-primary-200 " >
788788 < strong > New API:</ strong > The Modal now uses compound components for better flexibility.
789- The old < code className = "bg-primary-100 px-1 rounded" > title</ code > prop is deprecated
790- in favor of < code className = "bg-primary-100 px-1 rounded" > Modal.Header</ code > .
789+ The old < code className = "bg-primary-100 dark:bg-primary-800 px-1 rounded" > title</ code > prop is deprecated
790+ in favor of < code className = "bg-primary-100 dark:bg-primary-800 px-1 rounded" > Modal.Header</ code > .
791791 </ p >
792792 </ div >
793793
@@ -833,8 +833,8 @@ const MoleculesTab: React.FC<MoleculesTabProps> = ({ setModalOpen, setFullscreen
833833 </ div >
834834 </ div >
835835
836- < div className = "p-4 bg-primary-50 border border-primary-200 rounded-lg" >
837- < p className = "text-sm text-primary-800" >
836+ < div className = "p-4 bg-primary-50 dark:bg-primary-900/20 border border-primary-200 dark:border-primary-700 rounded-lg" >
837+ < p className = "text-sm text-primary-800 dark:text-primary-200 " >
838838 < strong > Form Showcase:</ strong > See the dedicated Form Molecules section below
839839 for interactive examples of all form components with validation and real-world usage patterns.
840840 </ p >
@@ -1010,7 +1010,7 @@ const InteractiveTab: React.FC<InteractiveTabProps> = ({
10101010 >
10111011 < Modal . Header showCloseButton onClose = { ( ) => setModalOpen ( false ) } >
10121012 < div className = "flex items-center gap-3" >
1013- < div className = "w-8 h-8 bg-primary-500 rounded-full flex items-center justify-center" >
1013+ < div className = "w-8 h-8 bg-primary-500 dark:bg-primary-400 rounded-full flex items-center justify-center" >
10141014 < StarIcon className = "w-4 h-4 text-white" />
10151015 </ div >
10161016 < div >
@@ -1020,10 +1020,10 @@ const InteractiveTab: React.FC<InteractiveTabProps> = ({
10201020 </ div >
10211021 </ Modal . Header >
10221022
1023- < Modal . Body scrollable maxHeight = "300px" >
1023+ < Modal . Body scrollable >
10241024 < div className = "space-y-4" >
10251025 < p className = "text-text-secondary" >
1026- This modal demonstrates the new compound component pattern with enhanced features :
1026+ This modal demonstrates the enhanced compound component pattern with improved scrolling :
10271027 </ p >
10281028
10291029 < div className = "grid grid-cols-1 sm:grid-cols-2 gap-4" >
@@ -1032,22 +1032,43 @@ const InteractiveTab: React.FC<InteractiveTabProps> = ({
10321032 < p className = "text-xs text-text-secondary" > WCAG AA compliant with proper focus management</ p >
10331033 </ div >
10341034 < div className = "p-3 bg-surface-secondary rounded-lg" >
1035- < h4 className = "font-medium text-text-primary mb-1" > Responsive </ h4 >
1036- < p className = "text-xs text-text-secondary" > Mobile-first design with adaptive behavior </ p >
1035+ < h4 className = "font-medium text-text-primary mb-1" > Enhanced Scrolling </ h4 >
1036+ < p className = "text-xs text-text-secondary" > Content grows indefinitely with proper scrolling </ p >
10371037 </ div >
10381038 < div className = "p-3 bg-surface-secondary rounded-lg" >
1039- < h4 className = "font-medium text-text-primary mb-1" > Flexible</ h4 >
1040- < p className = "text-xs text-text-secondary" > 9 sizes, 3 positions, custom styling </ p >
1039+ < h4 className = "font-medium text-text-primary mb-1" > Flexible Layout </ h4 >
1040+ < p className = "text-xs text-text-secondary" > Flex-based layout with optimal space distribution </ p >
10411041 </ div >
10421042 < div className = "p-3 bg-surface-secondary rounded-lg" >
1043- < h4 className = "font-medium text-text-primary mb-1" > Modern </ h4 >
1044- < p className = "text-xs text-text-secondary" > Smooth animations and transitions </ p >
1043+ < h4 className = "font-medium text-text-primary mb-1" > Responsive </ h4 >
1044+ < p className = "text-xs text-text-secondary" > Mobile-first design with adaptive behavior </ p >
10451045 </ div >
10461046 </ div >
10471047
1048- < div className = "p-4 bg-primary-50 border border-primary-200 rounded-lg" >
1049- < p className = "text-sm text-primary-800" >
1050- < strong > New API:</ strong > Use compound components for better flexibility and maintainability.
1048+ < div className = "space-y-3" >
1049+ < h4 className = "font-medium text-text-primary" > Scrolling Demonstration</ h4 >
1050+ < p className = "text-sm text-text-secondary" >
1051+ The modal now allows content to grow without height constraints.
1052+ Scroll down to see more content:
1053+ </ p >
1054+
1055+ { /* Generate content to demonstrate scrolling */ }
1056+ { Array . from ( { length : 12 } , ( _ , i ) => (
1057+ < div key = { i } className = "p-3 border border-border-primary rounded-md" >
1058+ < h5 className = "font-medium text-text-primary" > Feature { i + 1 } </ h5 >
1059+ < p className = "text-sm text-text-secondary" >
1060+ This demonstrates the improved scrolling behavior. The modal body
1061+ can now accommodate large amounts of content while maintaining
1062+ proper scrolling and fixed header/footer positioning.
1063+ </ p >
1064+ </ div >
1065+ ) ) }
1066+ </ div >
1067+
1068+ < div className = "p-4 bg-success-50 dark:bg-success-900/20 border border-success-200 dark:border-success-700 rounded-lg" >
1069+ < p className = "text-sm text-success-800 dark:text-success-200" >
1070+ < strong > Fixed:</ strong > Modal content can now grow indefinitely without height constraints,
1071+ providing better UX for large content with proper scrolling behavior.
10511072 </ p >
10521073 </ div >
10531074 </ div >
0 commit comments