Skip to content

Commit fa73037

Browse files
committed
Updated icon style for ascending
1 parent 3bf04a1 commit fa73037

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

packages/module/patternfly-docs/content/extensions/chatbot/examples/UI/ChatbotHeaderDrawerWithSearchActions.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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>

packages/module/src/ChatbotConversationHistoryNav/ChatbotConversationHistoryNav.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)