Merge pull request #533 from edewit/issue-459

changed all cancel buttons to type "link"
This commit is contained in:
mfrances17 2021-04-15 17:24:35 -04:00 committed by GitHub
commit c7b87ceeff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 19 deletions

View file

@ -80,7 +80,7 @@ export const DuplicateFlowModal = ({
<Button
id="modal-cancel"
key="cancel"
variant={ButtonVariant.secondary}
variant={ButtonVariant.link}
onClick={() => {
toggleDialog();
}}

View file

@ -41,11 +41,7 @@ export const ChangeTypeDialog = ({
>
{t("common:continue")}
</Button>,
<Button
key="cancel"
variant={ButtonVariant.secondary}
onClick={onClose}
>
<Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
{t("common:cancel")}
</Button>,
]}

View file

@ -93,7 +93,7 @@ export const AddMapperDialog = (props: AddMapperDialogProps) => {
<Button
id="modal-cancel"
key="cancel"
variant={ButtonVariant.secondary}
variant={ButtonVariant.link}
onClick={() => {
props.toggleDialog();
}}

View file

@ -26,7 +26,7 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
<Button
id="modal-cancel"
onClick={[Function]}
variant="secondary"
variant="link"
>
cancel
</Button>,
@ -1052,8 +1052,8 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
</button>
<button
aria-disabled="false"
class="pf-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-1"
class="pf-c-button pf-m-link"
data-ouia-component-id="OUIA-Generated-Button-link-1"
data-ouia-component-type="PF4/Button"
data-ouia-safe="true"
id="modal-cancel"
@ -1081,7 +1081,7 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
<Button
id="modal-cancel"
onClick={[Function]}
variant="secondary"
variant="link"
>
cancel
</Button>,
@ -20303,13 +20303,13 @@ exports[`<MapperDialog/> should have disabled add button when nothing is selecte
id="modal-cancel"
key="cancel"
onClick={[Function]}
variant="secondary"
variant="link"
>
<button
aria-disabled={false}
aria-label={null}
className="pf-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-1"
className="pf-c-button pf-m-link"
data-ouia-component-id="OUIA-Generated-Button-link-1"
data-ouia-component-type="PF4/Button"
data-ouia-safe={true}
disabled={false}

View file

@ -71,7 +71,7 @@ export const AddHostDialog = ({
<Button
id="add-node-cancel"
key="cancel"
variant={ButtonVariant.secondary}
variant={ButtonVariant.link}
onClick={() => onClose()}
>
{t("common:cancel")}

View file

@ -79,7 +79,7 @@ export const AddScopeDialog = ({
<Button
id="modal-cancel"
key="cancel"
variant={ButtonVariant.secondary}
variant={ButtonVariant.link}
onClick={() => {
setRows([]);
toggleDialog();

View file

@ -77,7 +77,7 @@ export const GroupsModal = ({
<Button
id="modal-cancel"
key="cancel"
variant={ButtonVariant.secondary}
variant={ButtonVariant.link}
onClick={() => {
handleModalToggle();
}}

View file

@ -82,7 +82,7 @@ export const MemberModal = ({ groupId, onClose }: MemberModalProps) => {
<Button
data-testid="cancel"
key="cancel"
variant="secondary"
variant="link"
onClick={onClose}
>
{t("common:cancel")}

View file

@ -92,7 +92,7 @@ export const MoveGroupDialog = ({
<Button
data-testid="moveCancel"
key="cancel"
variant="secondary"
variant="link"
onClick={onClose}
>
{t("common:cancel")}