"Import as JSON" dialog is not intuitive #3761 (#3763)

* "Import as JSON" dialog is not intuitive #3761

* Fixed styling in Angular form builder

- Fixed select file button;
- Fixed required asterisk color in hint text;
- Updated markup and refined CSS selector;

Co-authored-by: charlesh88 <charles.f.hacskaylo@nasa.gov>
This commit is contained in:
Nikhil 2021-03-26 11:43:02 -07:00 committed by GitHub
parent b042d9098d
commit 86ebd14ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 6 deletions

View File

@ -20,11 +20,11 @@
at runtime from the About dialog for additional information.
-->
<a class="s-button {{structure.cssClass}}"
<button class="c-button {{structure.cssClass}}"
ng-model="ngModel[field]"
ng-class="{ labeled: structure.text }"
mct-file-input>
<span class="title-label" ng-if="structure.text">
<span class="c-button__label" ng-if="structure.text">
{{structure.text}}
</span>
</a>
</button>

View File

@ -177,7 +177,7 @@ define(['zepto', 'objectUtils'], function ($, objectUtils) {
key: 'selectFile',
control: 'file-input',
required: true,
text: 'Select File'
text: 'Select File...'
}
]
}

View File

@ -36,7 +36,7 @@ export default function () {
key: 'selectFile',
control: 'file-input',
required: true,
text: 'Select File',
text: 'Select File...',
type: 'application/json'
}
],

View File

@ -335,7 +335,6 @@
}
}
@mixin labelValidate($sym, $c) {
> .label {
@include glyphAfter($sym);
@ -372,3 +371,7 @@ body.desktop .form-row.validates > .label {
line-height: 200%;
}
}
.req {
color: $colorFormRequired;
}