Skip to content

Commit dbcaa8d

Browse files
fix(AngleDownIcon): Replace AngleDownIcon with RhMicronsCaretDownIcon
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 61aa3e2 commit dbcaa8d

2 files changed

Lines changed: 9 additions & 34 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { css } from '@patternfly/react-styles';
33
import { Button, ButtonVariant } from '../Button';
44
import { Badge } from '../Badge';
55
import { Icon } from '../Icon';
6-
import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-icon';
76
import AngleUpIcon from '@patternfly/react-icons/dist/esm/icons/angle-up-icon';
87
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
98
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
@@ -340,7 +339,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
340339
aria-label={nextNavigationButtonAriaLabel}
341340
isDisabled={isDisabled || isNextNavigationButtonDisabled}
342341
onClick={onNextClick}
343-
icon={<AngleDownIcon />}
342+
icon={<RhMicronsCaretDownIcon />}
344343
/>
345344
</div>
346345
)}

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
@@ -770,24 +770,12 @@ exports[`SearchInput search input with hint 1`] = `
770770
fill="currentColor"
771771
height="1em"
772772
role="img"
773+
viewBox="0 0 20 20"
773774
width="1em"
774775
>
775-
<svg
776-
class="pf-v6-icon-default"
777-
viewBox="0 0 320 512"
778-
>
779-
<path
780-
d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"
781-
/>
782-
</svg>
783-
<svg
784-
class="pf-v6-icon-rh-ui"
785-
viewBox="0 0 32 32"
786-
>
787-
<path
788-
d="M16 24.792c-.384 0-.769-.146-1.061-.438L2.293 11.707a.999.999 0 1 1 1.414-1.414L16 22.586l12.293-12.293a.999.999 0 1 1 1.414 1.414L17.061 24.353a1.497 1.497 0 0 1-1.061.438Z"
789-
/>
790-
</svg>
776+
<path
777+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
778+
/>
791779
</svg>
792780
</span>
793781
</button>
@@ -966,24 +954,12 @@ exports[`SearchInput simple search input 1`] = `
966954
fill="currentColor"
967955
height="1em"
968956
role="img"
957+
viewBox="0 0 20 20"
969958
width="1em"
970959
>
971-
<svg
972-
class="pf-v6-icon-default"
973-
viewBox="0 0 320 512"
974-
>
975-
<path
976-
d="M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"
977-
/>
978-
</svg>
979-
<svg
980-
class="pf-v6-icon-rh-ui"
981-
viewBox="0 0 32 32"
982-
>
983-
<path
984-
d="M16 24.792c-.384 0-.769-.146-1.061-.438L2.293 11.707a.999.999 0 1 1 1.414-1.414L16 22.586l12.293-12.293a.999.999 0 1 1 1.414 1.414L17.061 24.353a1.497 1.497 0 0 1-1.061.438Z"
985-
/>
986-
</svg>
960+
<path
961+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
962+
/>
987963
</svg>
988964
</span>
989965
</button>

0 commit comments

Comments
 (0)