Skip to content

Commit 579301b

Browse files
fix(AngleUpIcon): Replace AngleUpIcon with RhMicronsCaretUpIcon
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 592ec73 commit 579301b

2 files changed

Lines changed: 10 additions & 34 deletions

File tree

packages/react-core/src/components/SearchInput/SearchInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { css } from '@patternfly/react-styles';
33
import { Button, ButtonVariant } from '../Button';
44
import { Badge } from '../Badge';
55
import { Icon } from '../Icon';
6-
import AngleUpIcon from '@patternfly/react-icons/dist/esm/icons/angle-up-icon';
6+
import RhMicronsCaretUpIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-up-icon';
77
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
88
import RhMicronsSearchIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-search-icon';
99
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon';
@@ -332,7 +332,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
332332
aria-label={previousNavigationButtonAriaLabel}
333333
isDisabled={isDisabled || isPreviousNavigationButtonDisabled}
334334
onClick={onPreviousClick}
335-
icon={<AngleUpIcon />}
335+
icon={<RhMicronsCaretUpIcon />}
336336
/>
337337
<Button
338338
variant={ButtonVariant.plain}

packages/react-core/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -687,24 +687,12 @@ exports[`SearchInput search input with hint 1`] = `
687687
fill="currentColor"
688688
height="1em"
689689
role="img"
690+
viewBox="0 0 20 20"
690691
width="1em"
691692
>
692-
<svg
693-
class="pf-v6-icon-default"
694-
viewBox="0 0 320 512"
695-
>
696-
<path
697-
d="M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"
698-
/>
699-
</svg>
700-
<svg
701-
class="pf-v6-icon-rh-ui"
702-
viewBox="0 0 32 32"
703-
>
704-
<path
705-
d="M29 22a.997.997 0 0 1-.707-.293L16 9.414 3.707 21.707a.999.999 0 1 1-1.414-1.414L14.939 7.646a1.501 1.501 0 0 1 2.121 0l12.646 12.646a.999.999 0 0 1-.707 1.707Z"
706-
/>
707-
</svg>
693+
<path
694+
d="m18.71 13.29-7.65-7.65a1.49 1.49 0 0 0-2.12 0l-7.65 7.65-.02.02c-.38.4-.37 1.03.02 1.41.4.38 1.03.37 1.41-.02l7.29-7.29 7.29 7.29c.19.19.44.29.71.29.27 0 .52-.11.71-.29a.996.996 0 0 0 0-1.41Z"
695+
/>
708696
</svg>
709697
</span>
710698
</button>
@@ -859,24 +847,12 @@ exports[`SearchInput simple search input 1`] = `
859847
fill="currentColor"
860848
height="1em"
861849
role="img"
850+
viewBox="0 0 20 20"
862851
width="1em"
863852
>
864-
<svg
865-
class="pf-v6-icon-default"
866-
viewBox="0 0 320 512"
867-
>
868-
<path
869-
d="M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"
870-
/>
871-
</svg>
872-
<svg
873-
class="pf-v6-icon-rh-ui"
874-
viewBox="0 0 32 32"
875-
>
876-
<path
877-
d="M29 22a.997.997 0 0 1-.707-.293L16 9.414 3.707 21.707a.999.999 0 1 1-1.414-1.414L14.939 7.646a1.501 1.501 0 0 1 2.121 0l12.646 12.646a.999.999 0 0 1-.707 1.707Z"
878-
/>
879-
</svg>
853+
<path
854+
d="m18.71 13.29-7.65-7.65a1.49 1.49 0 0 0-2.12 0l-7.65 7.65-.02.02c-.38.4-.37 1.03.02 1.41.4.38 1.03.37 1.41-.02l7.29-7.29 7.29 7.29c.19.19.44.29.71.29.27 0 .52-.11.71-.29a.996.996 0 0 0 0-1.41Z"
855+
/>
880856
</svg>
881857
</span>
882858
</button>

0 commit comments

Comments
 (0)