File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
patternfly-docs/content/extensions/chatbot/examples/UI
src/ChatbotConversationHistoryNav Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -134,9 +134,8 @@ export const ChatbotHeaderTitleDemo: FunctionComponent = () => {
134134 aria-label = "Filter options"
135135 // eslint-disable-next-line no-console
136136 onClick = { ( ) => console . log ( 'Filter button clicked' ) }
137- >
138- < FilterIcon />
139- </ Button >
137+ icon = { < FilterIcon /> }
138+ />
140139 ) : undefined
141140 }
142141 searchActionEnd = {
@@ -154,13 +153,14 @@ export const ChatbotHeaderTitleDemo: FunctionComponent = () => {
154153 isExpanded = { isSortSelectOpen }
155154 variant = "plain"
156155 aria-label = { `${ sortLabels [ selectedSort ] } , Sort conversations` }
157- >
158- < SortAmountDownIcon
159- style = { {
160- transform : selectedSort === 'oldest' || selectedSort === 'alphabetical-asc' ? 'rotate(180deg)' : 'none'
161- } }
162- />
163- </ MenuToggle >
156+ icon = {
157+ < SortAmountDownIcon
158+ style = { {
159+ transform : selectedSort === 'oldest' || selectedSort === 'alphabetical-asc' ? 'scaleY(-1)' : 'none'
160+ } }
161+ />
162+ }
163+ />
164164 ) }
165165 >
166166 < SelectList >
Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ describe('ChatbotConversationHistoryNav', () => {
614614
615615 expect ( searchInput . parentElement ?. previousElementSibling ) . toBeNull ( ) ;
616616 expect ( searchInput . parentElement ?. nextElementSibling ) . toBeNull ( ) ;
617- } )
617+ } ) ;
618618
619619 it ( 'Renders with action at start when searchActionStart is passed' , ( ) => {
620620 const handleSearch = jest . fn ( ) ;
@@ -635,8 +635,8 @@ describe('ChatbotConversationHistoryNav', () => {
635635 />
636636 ) ;
637637
638- expect ( screen . getByText ( " Search action start test" ) ) . toBeVisible ( ) ;
639- } )
638+ expect ( screen . getByText ( ' Search action start test' ) ) . toBeVisible ( ) ;
639+ } ) ;
640640
641641 it ( 'Renders with action at end when searchActionEnd is passed' , ( ) => {
642642 const handleSearch = jest . fn ( ) ;
@@ -657,8 +657,8 @@ describe('ChatbotConversationHistoryNav', () => {
657657 />
658658 ) ;
659659
660- expect ( screen . getByText ( " Search action end test" ) ) . toBeVisible ( ) ;
661- } )
660+ expect ( screen . getByText ( ' Search action end test' ) ) . toBeVisible ( ) ;
661+ } ) ;
662662
663663 it ( 'overrides nav title heading level when navTitleProps.headingLevel is passed' , ( ) => {
664664 render (
You can’t perform that action at this time.
0 commit comments