fix: button colors quick (#2056)

* add _redirects file for when output target is netlify

* temporarily swap dialog primary/secondary button types for dialogs
This commit is contained in:
Danny Brown 2020-09-22 21:41:42 -04:00 committed by GitHub
parent 2fc7169fa4
commit 56824b9142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 6 deletions

View File

@ -48,8 +48,8 @@ function callInputDialog(
noCloseButton: true, noCloseButton: true,
onClose: () => UIDialogService.dismiss({ id: dialogId }), onClose: () => UIDialogService.dismiss({ id: dialogId }),
actions: [ actions: [
{ id: 'cancel', text: 'Cancel', type: 'secondary' }, { id: 'cancel', text: 'Cancel', type: 'primary' },
{ id: 'save', text: 'Save', type: 'primary' }, { id: 'save', text: 'Save', type: 'secondary' },
], ],
onSubmit: onSubmitHandler, onSubmit: onSubmitHandler,
body: ({ value, setValue }) => { body: ({ value, setValue }) => {

View File

@ -43,8 +43,8 @@ export default function createReportDialogPrompt(UIDialogService) {
noCloseButton: true, noCloseButton: true,
onClose: _handleClose, onClose: _handleClose,
actions: [ actions: [
{ id: 'cancel', text: 'Cancel', type: 'secondary' }, { id: 'cancel', text: 'Cancel', type: 'primary' },
{ id: 'save', text: 'Save', type: 'primary' }, { id: 'save', text: 'Save', type: 'secondary' },
], ],
// TODO: Should be on button press... // TODO: Should be on button press...
onSubmit: _handleFormSubmit, onSubmit: _handleFormSubmit,

View File

@ -215,8 +215,9 @@ function PanelMeasurementTableTracking({ servicesManager, extensionManager }) {
); );
}, },
actions: [ actions: [
{ id: 'cancel', text: 'Cancel', type: 'secondary' }, // temp: swap button types until colors are updated
{ id: 'save', text: 'Save', type: 'primary' }, { id: 'cancel', text: 'Cancel', type: 'primary' },
{ id: 'save', text: 'Save', type: 'secondary' },
], ],
onSubmit: onSubmitHandler, onSubmit: onSubmitHandler,
}, },

View File

@ -0,0 +1,6 @@
# Specific to our deploy-preview
# Our docs are published using CircleCI + GitBook
# Confgure redirects using netlify.toml
# Spa
/* /index.html 200