@@ -23,11 +23,10 @@ import {
2323 CardTitleProps ,
2424 ExpandableSection ,
2525 ExpandableSectionVariant ,
26- Icon ,
2726 Truncate ,
2827 TruncateProps
2928} from '@patternfly/react-core' ;
30- import { RhMicronsExternalLinkIcon } from '@patternfly/react-icons' ;
29+ import { RhMicronsCaretLeftIcon , RhMicronsCaretRightIcon , RhMicronsExternalLinkIcon } from '@patternfly/react-icons' ;
3130
3231export interface SourcesCardBaseProps extends CardProps {
3332 /** Additional classes for the pagination navigation container. */
@@ -254,6 +253,7 @@ const SourcesCardBase: FunctionComponent<SourcesCardBaseProps> = ({
254253 >
255254 < Button
256255 variant = { ButtonVariant . plain }
256+ isCircle
257257 isDisabled = { isDisabled || page === 1 }
258258 data-action = "previous"
259259 onClick = { ( event ) => {
@@ -263,26 +263,14 @@ const SourcesCardBase: FunctionComponent<SourcesCardBaseProps> = ({
263263 } }
264264 aria-label = { toPreviousPageAriaLabel }
265265 >
266- < Icon iconSize = "lg" >
267- { /* these are inline because the viewBox that works in a round icon is different than the PatternFly default */ }
268- < svg
269- className = "pf-v6-svg"
270- viewBox = "0 0 280 500"
271- fill = "currentColor"
272- aria-hidden = "true"
273- role = "img"
274- width = "1em"
275- height = "1em"
276- >
277- < path d = "M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z" > </ path >
278- </ svg >
279- </ Icon >
266+ < RhMicronsCaretLeftIcon />
280267 </ Button >
281268 < span aria-hidden = "true" >
282269 { page } /{ sources . length }
283270 </ span >
284271 < Button
285272 variant = { ButtonVariant . plain }
273+ isCircle
286274 isDisabled = { isDisabled || page === sources . length }
287275 aria-label = { toNextPageAriaLabel }
288276 data-action = "next"
@@ -292,20 +280,7 @@ const SourcesCardBase: FunctionComponent<SourcesCardBaseProps> = ({
292280 handleNewPage ( event , newPage ) ;
293281 } }
294282 >
295- < Icon isInline iconSize = "lg" >
296- { /* these are inline because the viewBox that works in a round icon is different than the PatternFly default */ }
297- < svg
298- className = "pf-v6-svg"
299- viewBox = "0 0 180 500"
300- fill = "currentColor"
301- aria-hidden = "true"
302- role = "img"
303- width = "1em"
304- height = "1em"
305- >
306- < path d = "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z" > </ path >
307- </ svg >
308- </ Icon >
283+ < RhMicronsCaretRightIcon />
309284 </ Button >
310285 </ nav >
311286 </ div >
0 commit comments