Skip to content

Commit

Permalink
Tweak component CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester committed Aug 11, 2023
1 parent b18938a commit afae115
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
8 changes: 6 additions & 2 deletions webapp/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,14 @@
"aot": true,
"inlineStyleLanguage": "less",
"assets": [
"web-components/cht-form/src/assets"
{
"glob": "*",
"input": "src/fonts",
"output": "fonts/"
}
],
"styles": [
"web-components/cht-form/src/styles.less"
"src/css/inbox.less"
],
"stylePreprocessorOptions": {
"includePaths": [
Expand Down
23 changes: 10 additions & 13 deletions webapp/web-components/cht-form/src/app.component.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<div class="content-pane">
<div [attr.id]="formId" class="enketo" [attr.data-editing]="editing">
<h4>Message for jkuester: {{ thankyouMessage }}</h4>
<div [attr.id]="formId" class="enketo" [attr.data-editing]="editing">
<h4>Message for jkuester: {{ thankyouMessage }}</h4>

<div class="container pages"></div>
<div class="form-footer">
<button (click)="onCancel.emit()" class="btn btn-link cancel" [disabled]="status?.saving">{{'Cancel' | translate}}</button>
<div class="loader inline small" *ngIf="status?.saving"></div>
<span class="error" *ngIf="status?.error">{{status?.error}}</span>
<button class="btn btn-default previous-page" [disabled]="status?.saving">{{'Previous' | translate}}</button>
<button class="btn btn-primary next-page" [disabled]="status?.saving">{{'Next' | translate}}</button>
<button (click)="onSubmit.emit()" class="btn submit btn-primary" [disabled]="status?.saving">{{'Submit' | translate}}</button>
</div>
<div class="container pages"></div>
<div class="form-footer">
<button (click)="onCancel.emit()" class="btn btn-link cancel" [disabled]="status?.saving">{{'Cancel' | translate}}</button>
<div class="loader inline small" *ngIf="status?.saving"></div>
<span class="error" *ngIf="status?.error">{{status?.error}}</span>
<button class="btn btn-default previous-page" [disabled]="status?.saving">{{'Previous' | translate}}</button>
<button class="btn btn-primary next-page" [disabled]="status?.saving">{{'Next' | translate}}</button>
<button (click)="onSubmit.emit()" class="btn submit btn-primary" [disabled]="status?.saving">{{'Submit' | translate}}</button>
</div>
</div>

1 change: 0 additions & 1 deletion webapp/web-components/cht-form/src/styles.less

This file was deleted.

6 changes: 5 additions & 1 deletion webapp/web-components/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
<div>
<h1 class="display-4">Helloo, world!</h1>
<hr class="my-4">
<cht-form form-id="report-form"></cht-form>
<cht-form id="myform" form-id="report-form"></cht-form>
<!-- <p><cht-form thankyou-message="You da real MVP"></cht-form></p>-->
</div>
</body>

<script>
document.getElementById('myform').setAttribute('thankyou-message', 'somevalue');
</script>
</html>

0 comments on commit afae115

Please sign in to comment.