@@ -28,3 +28,34 @@ ExtendedPagesizeSelection.args = {
2828 { text : "Large page with 100 items" , value : "100" } ,
2929 ] ,
3030} ;
31+
32+ const VisibilityRegressionExample : StoryFn < typeof Pagination > = ( args ) => (
33+ < div style = { { display : "grid" , gap : "1rem" } } >
34+ < p style = { { margin : 0 , maxWidth : "56rem" } } >
35+ Both examples below enable < code > hidePageSizeConfiguration</ code > and < code > hideNavigationArrows</ code > .
36+ The expected behavior is that the page-size selector and navigation arrows stay hidden regardless of width.
37+ If the container-query override is active, the wider example will show them again.
38+ </ p >
39+ < div style = { { display : "grid" , gap : "1rem" , gridTemplateColumns : "repeat(auto-fit, minmax(22rem, 1fr))" } } >
40+ < div style = { { border : "1px solid #c6c6c6" , padding : "1rem" } } >
41+ < div style = { { fontWeight : 600 , marginBottom : "0.5rem" } } > Narrow container (~24rem)</ div >
42+ < div style = { { width : "24rem" } } >
43+ < Pagination { ...args } />
44+ </ div >
45+ </ div >
46+ < div style = { { border : "1px solid #c6c6c6" , padding : "1rem" } } >
47+ < div style = { { fontWeight : 600 , marginBottom : "0.5rem" } } > Wide container (~36rem)</ div >
48+ < div style = { { width : "36rem" } } >
49+ < Pagination { ...args } />
50+ </ div >
51+ </ div >
52+ </ div >
53+ </ div >
54+ ) ;
55+
56+ export const ContainerQueryOverridesHideFlags = VisibilityRegressionExample . bind ( { } ) ;
57+ ContainerQueryOverridesHideFlags . args = {
58+ ...Default . args ,
59+ hidePageSizeConfiguration : true ,
60+ hideNavigationArrows : true ,
61+ } ;
0 commit comments