mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Merge pull request #9240 from marshmalien/7040-cancel-btn-style
Update cancel button style to "link" Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
471ee46171
@ -112,7 +112,7 @@ function AssociateModal({
|
||||
<Button
|
||||
aria-label={i18n._(t`Cancel`)}
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
onClick={handleClose}
|
||||
>
|
||||
{i18n._(t`Cancel`)}
|
||||
|
||||
@ -42,7 +42,7 @@ function DeleteButton({
|
||||
</Button>,
|
||||
<Button
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`Cancel`)}
|
||||
onClick={() => setIsOpen(false)}
|
||||
>
|
||||
|
||||
@ -118,7 +118,7 @@ function DisassociateButton({
|
||||
</Button>,
|
||||
<Button
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`Cancel`)}
|
||||
onClick={() => setIsOpen(false)}
|
||||
>
|
||||
|
||||
@ -20,7 +20,7 @@ const FormActionGroup = ({ onCancel, onSubmit, submitDisabled, i18n }) => {
|
||||
</Button>
|
||||
<Button
|
||||
aria-label={i18n._(t`Cancel`)}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
type="button"
|
||||
onClick={onCancel}
|
||||
>
|
||||
|
||||
@ -138,7 +138,7 @@ function Lookup(props) {
|
||||
>
|
||||
{i18n._(t`Select`)}
|
||||
</Button>,
|
||||
<Button key="cancel" variant="secondary" onClick={closeModal}>
|
||||
<Button key="cancel" variant="link" onClick={closeModal}>
|
||||
{i18n._(t`Cancel`)}
|
||||
</Button>,
|
||||
]}
|
||||
|
||||
@ -160,7 +160,7 @@ function ToolbarDeleteButton({
|
||||
</Button>,
|
||||
<Button
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`cancel delete`)}
|
||||
onClick={toggleModal}
|
||||
>
|
||||
|
||||
@ -36,7 +36,7 @@ function DeleteRoleConfirmationModal({
|
||||
>
|
||||
{i18n._(t`Delete`)}
|
||||
</Button>,
|
||||
<Button key="cancel" variant="secondary" onClick={onCancel}>
|
||||
<Button key="cancel" variant="link" onClick={onCancel}>
|
||||
{i18n._(t`Cancel`)}
|
||||
</Button>,
|
||||
]}
|
||||
|
||||
@ -29,7 +29,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
</Button>,
|
||||
<Button
|
||||
onClick={[Function]}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
>
|
||||
Cancel
|
||||
</Button>,
|
||||
@ -56,7 +56,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
</Button>,
|
||||
<Button
|
||||
onClick={[Function]}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
>
|
||||
Cancel
|
||||
</Button>,
|
||||
@ -80,7 +80,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
</Button>,
|
||||
<Button
|
||||
onClick={[Function]}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
>
|
||||
Cancel
|
||||
</Button>,
|
||||
@ -212,8 +212,8 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
</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"
|
||||
type="button"
|
||||
@ -239,7 +239,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
</Button>,
|
||||
<Button
|
||||
onClick={[Function]}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
>
|
||||
Cancel
|
||||
</Button>,
|
||||
@ -517,13 +517,13 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
<Button
|
||||
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}
|
||||
|
||||
@ -270,7 +270,7 @@ function CredentialForm({
|
||||
<Button
|
||||
id="credential-form-cancel-button"
|
||||
aria-label={i18n._(t`Cancel`)}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
type="button"
|
||||
onClick={onCancel}
|
||||
>
|
||||
|
||||
@ -105,7 +105,7 @@ const InventoryGroupsDeleteModal = ({
|
||||
<Button
|
||||
aria-label={i18n._(t`Close`)}
|
||||
onClick={() => setIsModalOpen(false)}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
key="cancel"
|
||||
>
|
||||
{i18n._(t`Cancel`)}
|
||||
|
||||
@ -24,7 +24,7 @@ function RevertAllAlert({ i18n, onClose, onRevertAll }) {
|
||||
</Button>,
|
||||
<Button
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`Cancel revert`)}
|
||||
onClick={onClose}
|
||||
ouiaId="cancel-revert-all-button"
|
||||
|
||||
@ -36,7 +36,7 @@ const RevertFormActionGroup = ({
|
||||
{children}
|
||||
<Button
|
||||
aria-label={i18n._(t`Cancel`)}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
type="button"
|
||||
onClick={onCancel}
|
||||
ouiaId="cancel-button"
|
||||
|
||||
@ -205,7 +205,7 @@ function TeamRolesList({ i18n, me, team }) {
|
||||
</Button>,
|
||||
<Button
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`Cancel`)}
|
||||
onClick={() => setRoleToDisassociate(null)}
|
||||
>
|
||||
|
||||
@ -107,7 +107,7 @@ function SurveyList({
|
||||
</Button>,
|
||||
<Button
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`cancel delete`)}
|
||||
onClick={() => {
|
||||
setIsDeleteModalOpen(false);
|
||||
|
||||
@ -22,7 +22,7 @@ function DeleteAllNodesModal({ i18n }) {
|
||||
<Button
|
||||
id="cancel-delete-all-nodes"
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`Cancel node removal`)}
|
||||
onClick={() => dispatch({ type: 'TOGGLE_DELETE_ALL_NODES_MODAL' })}
|
||||
>
|
||||
|
||||
@ -32,7 +32,7 @@ function LinkDeleteModal({ i18n }) {
|
||||
aria-label={i18n._(t`Cancel link removal`)}
|
||||
key="cancel"
|
||||
onClick={() => dispatch({ type: 'SET_LINK_TO_DELETE', value: null })}
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
>
|
||||
{i18n._(t`Cancel`)}
|
||||
</Button>,
|
||||
|
||||
@ -36,7 +36,7 @@ function LinkModal({ header, i18n, onConfirm }) {
|
||||
<Button
|
||||
id="link-cancel"
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`Cancel link changes`)}
|
||||
onClick={() => dispatch({ type: 'CANCEL_LINK_MODAL' })}
|
||||
>
|
||||
|
||||
@ -31,7 +31,7 @@ function NodeDeleteModal({ i18n }) {
|
||||
<Button
|
||||
id="cancel-node-removal"
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`Cancel node removal`)}
|
||||
onClick={() => dispatch({ type: 'SET_NODE_TO_DELETE', value: null })}
|
||||
>
|
||||
|
||||
@ -205,7 +205,7 @@ function UserRolesList({ i18n, user }) {
|
||||
</Button>,
|
||||
<Button
|
||||
key="cancel"
|
||||
variant="secondary"
|
||||
variant="link"
|
||||
aria-label={i18n._(t`Cancel`)}
|
||||
onClick={() => setRoleToDisassociate(null)}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user