@@ -27,7 +27,7 @@ import {
2727 Truncate ,
2828 TruncateProps
2929} from '@patternfly/react-core' ;
30- import { RhMicronsExternalLinkIcon } from '@patternfly/react-icons' ;
30+ import { RhMicronsCaretLeftIcon , RhMicronsCaretRightIcon , RhMicronsExternalLinkIcon } from '@patternfly/react-icons' ;
3131
3232export interface SourcesCardBaseProps extends CardProps {
3333 /** Additional classes for the pagination navigation container. */
@@ -254,6 +254,7 @@ const SourcesCardBase: FunctionComponent<SourcesCardBaseProps> = ({
254254 >
255255 < Button
256256 variant = { ButtonVariant . plain }
257+ isCircle
257258 isDisabled = { isDisabled || page === 1 }
258259 data-action = "previous"
259260 onClick = { ( event ) => {
@@ -263,26 +264,14 @@ const SourcesCardBase: FunctionComponent<SourcesCardBaseProps> = ({
263264 } }
264265 aria-label = { toPreviousPageAriaLabel }
265266 >
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 >
267+ < RhMicronsCaretLeftIcon />
280268 </ Button >
281269 < span aria-hidden = "true" >
282270 { page } /{ sources . length }
283271 </ span >
284272 < Button
285273 variant = { ButtonVariant . plain }
274+ isCircle
286275 isDisabled = { isDisabled || page === sources . length }
287276 aria-label = { toNextPageAriaLabel }
288277 data-action = "next"
@@ -292,20 +281,7 @@ const SourcesCardBase: FunctionComponent<SourcesCardBaseProps> = ({
292281 handleNewPage ( event , newPage ) ;
293282 } }
294283 >
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 >
284+ < RhMicronsCaretRightIcon />
309285 </ Button >
310286 </ nav >
311287 </ div >
0 commit comments