Skip to content

Commit 720e009

Browse files
author
David Kim
authored
fix: turn modal cancel buttons into tertiary (#2979)
1 parent 04f4b24 commit 720e009

File tree

33 files changed

+60
-22
lines changed

33 files changed

+60
-22
lines changed

src/annotations/components/annotationForm/AnnotationForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ export const AnnotationForm: FC<Props> = (props: Props) => {
348348
<div className={buttonClasses}>
349349
<Button
350350
text="Cancel"
351+
color={ComponentColor.Tertiary}
351352
onClick={handleCancel}
352353
testID="edit-annotation-cancel-button"
353354
className="edit-annotation-cancel"

src/authorizations/components/AllAccessTokenOverlay.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ class AllAccessTokenOverlay extends PureComponent<Props, State> {
8282

8383
<Form.Footer>
8484
<Overlay.Footer>
85-
<Button text="Cancel" onClick={this.handleDismiss} />
85+
<Button
86+
text="Cancel"
87+
color={ComponentColor.Tertiary}
88+
onClick={this.handleDismiss}
89+
/>
8690
<Button
8791
text="Save"
8892
testID="button--save"

src/authorizations/components/BucketsTokenOverlay.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class BucketsTokenOverlay extends PureComponent<Props, State> {
128128
<Overlay.Footer>
129129
<Button
130130
text="Cancel"
131+
color={ComponentColor.Tertiary}
131132
onClick={this.handleDismiss}
132133
testID="button--cancel"
133134
/>

src/authorizations/components/redesigned/AllAccessTokenOverlay.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const AllAccessTokenOverlay: FC<OwnProps> = props => {
9595
<Form.Footer>
9696
<Button
9797
text="Cancel"
98+
color={ComponentColor.Tertiary}
9899
icon={IconFont.Remove}
99100
onClick={handleDismiss}
100101
/>

src/authorizations/components/redesigned/CustomApiTokenOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ const CustomApiTokenOverlay: FC<Props> = props => {
316316
</Overlay.Body>
317317
<Overlay.Footer>
318318
<Button
319-
color={ComponentColor.Primary}
319+
color={ComponentColor.Tertiary}
320320
shape={ButtonShape.Default}
321321
onClick={handleDismiss}
322322
testID="cancel-token-overlay--buton"

src/authorizations/components/redesigned/EditTokenOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const EditTokenOverlay: FC<Props> = props => {
153153
<Page.ControlBarCenter>
154154
<FlexBox margin={ComponentSize.Medium}>
155155
<Button
156-
color={ComponentColor.Default}
156+
color={ComponentColor.Tertiary}
157157
text="Cancel"
158158
onClick={handleDismiss}
159159
testID="token-cancel-btn"

src/buckets/components/RenameBucketForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class RenameBucketForm extends PureComponent<Props, State> {
6969
>
7070
<Button
7171
text="Cancel"
72+
color={ComponentColor.Tertiary}
7273
onClick={this.handleClose}
7374
type={ButtonType.Button}
7475
/>

src/buckets/components/createBucketForm/BucketOverlayForm.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,12 @@ export default class BucketOverlayForm extends PureComponent<Props> {
205205
{makeAdvancedSection()}
206206
</Overlay.Body>
207207
<Overlay.Footer>
208-
<Button text="Cancel" onClick={onClose} type={ButtonType.Button} />
208+
<Button
209+
text="Cancel"
210+
color={ComponentColor.Tertiary}
211+
onClick={onClose}
212+
type={ButtonType.Button}
213+
/>
209214
{buttonText === 'Save Changes' && (
210215
<Button
211216
text="Rename"

src/buckets/components/lineProtocol/UploadFileButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const UploadFileButtons: FC = () => {
2626
if (writeStatus === RemoteDataState.Error) {
2727
return (
2828
<Button
29-
color={ComponentColor.Default}
29+
color={ComponentColor.Tertiary}
3030
text="Cancel"
3131
size={ComponentSize.Medium}
3232
type={ButtonType.Button}

src/buckets/components/lineProtocol/configure/DragAndDropButtons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const DragAndDropButtons: FC<Props> = ({
2525
return (
2626
<span className="drag-and-drop--buttons">
2727
<Button
28-
color={ComponentColor.Default}
28+
color={ComponentColor.Tertiary}
2929
text="Cancel"
3030
size={ComponentSize.Medium}
3131
type={ButtonType.Button}
@@ -51,7 +51,7 @@ const DragAndDropButtons: FC<Props> = ({
5151
testID="write-data--button"
5252
/>
5353
<Button
54-
color={ComponentColor.Default}
54+
color={ComponentColor.Tertiary}
5555
text="Cancel"
5656
size={ComponentSize.Medium}
5757
type={ButtonType.Submit}

0 commit comments

Comments
 (0)