mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02: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:
@@ -112,7 +112,7 @@ function AssociateModal({
|
|||||||
<Button
|
<Button
|
||||||
aria-label={i18n._(t`Cancel`)}
|
aria-label={i18n._(t`Cancel`)}
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
>
|
>
|
||||||
{i18n._(t`Cancel`)}
|
{i18n._(t`Cancel`)}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ function DeleteButton({
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`Cancel`)}
|
aria-label={i18n._(t`Cancel`)}
|
||||||
onClick={() => setIsOpen(false)}
|
onClick={() => setIsOpen(false)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ function DisassociateButton({
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`Cancel`)}
|
aria-label={i18n._(t`Cancel`)}
|
||||||
onClick={() => setIsOpen(false)}
|
onClick={() => setIsOpen(false)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const FormActionGroup = ({ onCancel, onSubmit, submitDisabled, i18n }) => {
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
aria-label={i18n._(t`Cancel`)}
|
aria-label={i18n._(t`Cancel`)}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ function Lookup(props) {
|
|||||||
>
|
>
|
||||||
{i18n._(t`Select`)}
|
{i18n._(t`Select`)}
|
||||||
</Button>,
|
</Button>,
|
||||||
<Button key="cancel" variant="secondary" onClick={closeModal}>
|
<Button key="cancel" variant="link" onClick={closeModal}>
|
||||||
{i18n._(t`Cancel`)}
|
{i18n._(t`Cancel`)}
|
||||||
</Button>,
|
</Button>,
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ function ToolbarDeleteButton({
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`cancel delete`)}
|
aria-label={i18n._(t`cancel delete`)}
|
||||||
onClick={toggleModal}
|
onClick={toggleModal}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ function DeleteRoleConfirmationModal({
|
|||||||
>
|
>
|
||||||
{i18n._(t`Delete`)}
|
{i18n._(t`Delete`)}
|
||||||
</Button>,
|
</Button>,
|
||||||
<Button key="cancel" variant="secondary" onClick={onCancel}>
|
<Button key="cancel" variant="link" onClick={onCancel}>
|
||||||
{i18n._(t`Cancel`)}
|
{i18n._(t`Cancel`)}
|
||||||
</Button>,
|
</Button>,
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>,
|
</Button>,
|
||||||
@@ -56,7 +56,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>,
|
</Button>,
|
||||||
@@ -80,7 +80,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>,
|
</Button>,
|
||||||
@@ -212,8 +212,8 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
|||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
aria-disabled="false"
|
aria-disabled="false"
|
||||||
class="pf-c-button pf-m-secondary"
|
class="pf-c-button pf-m-link"
|
||||||
data-ouia-component-id="OUIA-Generated-Button-secondary-1"
|
data-ouia-component-id="OUIA-Generated-Button-link-1"
|
||||||
data-ouia-component-type="PF4/Button"
|
data-ouia-component-type="PF4/Button"
|
||||||
data-ouia-safe="true"
|
data-ouia-safe="true"
|
||||||
type="button"
|
type="button"
|
||||||
@@ -239,7 +239,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>,
|
</Button>,
|
||||||
@@ -517,13 +517,13 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
|||||||
<Button
|
<Button
|
||||||
key="cancel"
|
key="cancel"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-disabled={false}
|
aria-disabled={false}
|
||||||
aria-label={null}
|
aria-label={null}
|
||||||
className="pf-c-button pf-m-secondary"
|
className="pf-c-button pf-m-link"
|
||||||
data-ouia-component-id="OUIA-Generated-Button-secondary-1"
|
data-ouia-component-id="OUIA-Generated-Button-link-1"
|
||||||
data-ouia-component-type="PF4/Button"
|
data-ouia-component-type="PF4/Button"
|
||||||
data-ouia-safe={true}
|
data-ouia-safe={true}
|
||||||
disabled={false}
|
disabled={false}
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ function CredentialForm({
|
|||||||
<Button
|
<Button
|
||||||
id="credential-form-cancel-button"
|
id="credential-form-cancel-button"
|
||||||
aria-label={i18n._(t`Cancel`)}
|
aria-label={i18n._(t`Cancel`)}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ const InventoryGroupsDeleteModal = ({
|
|||||||
<Button
|
<Button
|
||||||
aria-label={i18n._(t`Close`)}
|
aria-label={i18n._(t`Close`)}
|
||||||
onClick={() => setIsModalOpen(false)}
|
onClick={() => setIsModalOpen(false)}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
key="cancel"
|
key="cancel"
|
||||||
>
|
>
|
||||||
{i18n._(t`Cancel`)}
|
{i18n._(t`Cancel`)}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ function RevertAllAlert({ i18n, onClose, onRevertAll }) {
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`Cancel revert`)}
|
aria-label={i18n._(t`Cancel revert`)}
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
ouiaId="cancel-revert-all-button"
|
ouiaId="cancel-revert-all-button"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const RevertFormActionGroup = ({
|
|||||||
{children}
|
{children}
|
||||||
<Button
|
<Button
|
||||||
aria-label={i18n._(t`Cancel`)}
|
aria-label={i18n._(t`Cancel`)}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
ouiaId="cancel-button"
|
ouiaId="cancel-button"
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ function TeamRolesList({ i18n, me, team }) {
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`Cancel`)}
|
aria-label={i18n._(t`Cancel`)}
|
||||||
onClick={() => setRoleToDisassociate(null)}
|
onClick={() => setRoleToDisassociate(null)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ function SurveyList({
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`cancel delete`)}
|
aria-label={i18n._(t`cancel delete`)}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setIsDeleteModalOpen(false);
|
setIsDeleteModalOpen(false);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ function DeleteAllNodesModal({ i18n }) {
|
|||||||
<Button
|
<Button
|
||||||
id="cancel-delete-all-nodes"
|
id="cancel-delete-all-nodes"
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`Cancel node removal`)}
|
aria-label={i18n._(t`Cancel node removal`)}
|
||||||
onClick={() => dispatch({ type: 'TOGGLE_DELETE_ALL_NODES_MODAL' })}
|
onClick={() => dispatch({ type: 'TOGGLE_DELETE_ALL_NODES_MODAL' })}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function LinkDeleteModal({ i18n }) {
|
|||||||
aria-label={i18n._(t`Cancel link removal`)}
|
aria-label={i18n._(t`Cancel link removal`)}
|
||||||
key="cancel"
|
key="cancel"
|
||||||
onClick={() => dispatch({ type: 'SET_LINK_TO_DELETE', value: null })}
|
onClick={() => dispatch({ type: 'SET_LINK_TO_DELETE', value: null })}
|
||||||
variant="secondary"
|
variant="link"
|
||||||
>
|
>
|
||||||
{i18n._(t`Cancel`)}
|
{i18n._(t`Cancel`)}
|
||||||
</Button>,
|
</Button>,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ function LinkModal({ header, i18n, onConfirm }) {
|
|||||||
<Button
|
<Button
|
||||||
id="link-cancel"
|
id="link-cancel"
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`Cancel link changes`)}
|
aria-label={i18n._(t`Cancel link changes`)}
|
||||||
onClick={() => dispatch({ type: 'CANCEL_LINK_MODAL' })}
|
onClick={() => dispatch({ type: 'CANCEL_LINK_MODAL' })}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function NodeDeleteModal({ i18n }) {
|
|||||||
<Button
|
<Button
|
||||||
id="cancel-node-removal"
|
id="cancel-node-removal"
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`Cancel node removal`)}
|
aria-label={i18n._(t`Cancel node removal`)}
|
||||||
onClick={() => dispatch({ type: 'SET_NODE_TO_DELETE', value: null })}
|
onClick={() => dispatch({ type: 'SET_NODE_TO_DELETE', value: null })}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ function UserRolesList({ i18n, user }) {
|
|||||||
</Button>,
|
</Button>,
|
||||||
<Button
|
<Button
|
||||||
key="cancel"
|
key="cancel"
|
||||||
variant="secondary"
|
variant="link"
|
||||||
aria-label={i18n._(t`Cancel`)}
|
aria-label={i18n._(t`Cancel`)}
|
||||||
onClick={() => setRoleToDisassociate(null)}
|
onClick={() => setRoleToDisassociate(null)}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user