Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored May 2, 2022
1 parent 4f04f11 commit 1cb911c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions components/lib/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export const Carousel = React.memo(React.forwardRef((props, ref) => {
});

return (
<Button className={className} icon={iconClassName} onClick={navBackward} disabled={isDisabled} aria-label={ariaLabel('previousPageLabel')} />
<Button type='button' className={className} icon={iconClassName} onClick={navBackward} disabled={isDisabled} aria-label={ariaLabel('previousPageLabel')} />
)
}

Expand All @@ -502,7 +502,7 @@ export const Carousel = React.memo(React.forwardRef((props, ref) => {
});

return (
<Button className={className} icon={iconClassName} onClick={navForward} disabled={isDisabled} aria-label={ariaLabel('nextPageLabel')} />
<Button type='button' className={className} icon={iconClassName} onClick={navForward} disabled={isDisabled} aria-label={ariaLabel('nextPageLabel')} />
)
}

Expand All @@ -515,7 +515,7 @@ export const Carousel = React.memo(React.forwardRef((props, ref) => {

return (
<li key={key} className={className}>
<Button className="p-link" onClick={(e) => onDotClick(e, index)} aria-label={`${ariaLabel('pageLabel')} ${index + 1}`} />
<Button type='button' className="p-link" onClick={(e) => onDotClick(e, index)} aria-label={`${ariaLabel('pageLabel')} ${index + 1}`} />
</li>
)
}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/paginator/FirstPageLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const FirstPageLink = React.memo((props) => {
const className = classNames('p-paginator-first p-paginator-element p-link', { 'p-disabled': props.disabled });
const iconClassName = 'p-paginator-icon pi pi-angle-double-left';
const element = (
<Button className={className} icon={iconClassName} onClick={props.onClick} disabled={props.disabled} aria-label={ariaLabel('firstPageLabel')}/>
<Button type='button' className={className} icon={iconClassName} onClick={props.onClick} disabled={props.disabled} aria-label={ariaLabel('firstPageLabel')}/>
);

if (props.template) {
Expand Down
2 changes: 1 addition & 1 deletion components/lib/paginator/LastPageLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const LastPageLink = React.memo((props) => {
const className = classNames('p-paginator-last p-paginator-element p-link', { 'p-disabled': props.disabled });
const iconClassName = 'p-paginator-icon pi pi-angle-double-right';
const element = (
<Button className={className} icon={iconClassName} onClick={props.onClick} disabled={props.disabled} aria-label={ariaLabel('lastPageLabel')}/>
<Button type='button' className={className} icon={iconClassName} onClick={props.onClick} disabled={props.disabled} aria-label={ariaLabel('lastPageLabel')}/>
);

if (props.template) {
Expand Down
2 changes: 1 addition & 1 deletion components/lib/paginator/NextPageLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const NextPageLink = React.memo((props) => {
const className = classNames('p-paginator-next p-paginator-element p-link', { 'p-disabled': props.disabled });
const iconClassName = 'p-paginator-icon pi pi-angle-right';
const element = (
<Button className={className} icon={iconClassName} onClick={props.onClick} disabled={props.disabled} aria-label={ariaLabel('nextPageLabel')}/>
<Button type='button' className={className} icon={iconClassName} onClick={props.onClick} disabled={props.disabled} aria-label={ariaLabel('nextPageLabel')}/>
);

if (props.template) {
Expand Down
2 changes: 1 addition & 1 deletion components/lib/paginator/PageLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const PageLinks = React.memo((props) => {
});

let element = (
<Button className={className} onClick={(e) => onPageLinkClick(e, pageLink)} aria-label={`${ariaLabel('pageLabel')} ${pageLink + 1}`}>
<Button type='button' className={className} onClick={(e) => onPageLinkClick(e, pageLink)} aria-label={`${ariaLabel('pageLabel')} ${pageLink + 1}`}>
{pageLink}
</Button>
);
Expand Down
2 changes: 1 addition & 1 deletion components/lib/paginator/PrevPageLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const PrevPageLink = React.memo((props) => {
const className = classNames('p-paginator-prev p-paginator-element p-link', { 'p-disabled': props.disabled });
const iconClassName = 'p-paginator-icon pi pi-angle-left';
const element = (
<Button className={className} icon={iconClassName} onClick={props.onClick} disabled={props.disabled} aria-label={ariaLabel('previousPageLabel')}/>
<Button type='button' className={className} icon={iconClassName} onClick={props.onClick} disabled={props.disabled} aria-label={ariaLabel('previousPageLabel')}/>
);

if (props.template) {
Expand Down

0 comments on commit 1cb911c

Please sign in to comment.