Skip to content

Commit cec652c

Browse files
committed
Merge remote-tracking branch 'origin/refactor/buttons-styles' into fix/update-palettes
2 parents a12de33 + 7b10d00 commit cec652c

File tree

11 files changed

+441
-276
lines changed

11 files changed

+441
-276
lines changed

src/app/core/components/header/header.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
class="custom-dark-hover"
77
icon="fas fa-chevron-down"
88
iconPos="right"
9+
variant="text"
910
[label]="currentUser()?.fullName"
1011
(click)="menu.toggle($event)"
1112
></p-button>

src/app/features/project/analytics/components/analytics-kpi/analytics-kpi.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@if (showButton()) {
1111
<div>
12-
<p-button severity="secondary">{{ buttonLabel() | translate }}</p-button>
12+
<p-button severity="secondary" [label]="buttonLabel() | translate"> </p-button>
1313
</div>
1414
}
1515
</div>

src/app/features/project/contributors/components/contributors-list/contributors-list.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ <h2>{{ 'project.contributors.curatorInfo.heading' | translate }}</h2>
157157
</div>
158158
</td>
159159
<td>
160-
<p-button class="btn-icon-text button-shadow-none" (click)="removeContributor(contributor)">
161-
<i class="osf-icon-trash red-icon"></i>
160+
<p-button variant="text" [severity]="'danger'" (click)="removeContributor(contributor)">
161+
<i class="fas fa-trash"></i>
162162
</p-button>
163163
</td>
164164
</tr>

src/app/features/project/files/project-files.component.html

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,39 @@
4242
</div>
4343

4444
<div class="flex flex-column w-full gap-2 sm:flex-row md:w-max">
45-
<div class="btn-full-width">
46-
@let id = currentFolder()?.id ?? '';
47-
@let rootFolder = !currentFolder()?.relationships?.parentFolderLink;
48-
<p-button [disabled]="fileIsUploading" class="no-padding-button" (click)="downloadFolder(id, rootFolder)">
49-
<div class="outline-button w-full md:w-max blue">
50-
<i class="osf-icon-download"> </i>
51-
<span>{{ 'project.files.actions.downloadAsZip' | translate }}</span>
52-
</div>
53-
</p-button>
54-
</div>
45+
@let id = currentFolder()?.id ?? '';
46+
@let rootFolder = !currentFolder()?.relationships?.parentFolderLink;
47+
<p-button
48+
[disabled]="fileIsUploading"
49+
outlined
50+
raised
51+
(click)="downloadFolder(id, rootFolder)"
52+
[icon]="'fas fa-download'"
53+
[label]="'project.files.actions.downloadAsZip' | translate"
54+
>
55+
</p-button>
5556

56-
<div class="btn-full-width">
57-
<p-button [disabled]="fileIsUploading" class="no-padding-button" (click)="createFolderVisible = true">
58-
<div class="outline-button w-full md:w-max green">
59-
<i class="osf-icon-plus"> </i>
60-
<span>{{ 'project.files.actions.createFolder' | translate }}</span>
61-
</div>
62-
</p-button>
63-
</div>
57+
<p-button
58+
[disabled]="fileIsUploading"
59+
outlined
60+
raised
61+
severity="success"
62+
[icon]="'fas fa-plus'"
63+
[label]="'project.files.actions.createFolder' | translate"
64+
(click)="createFolderVisible = true"
65+
>
66+
</p-button>
6467

65-
<div class="btn-full-width">
66-
<p-button [disabled]="fileIsUploading" class="no-padding-button" (click)="fileInput.click()">
67-
<div class="outline-button w-full md:w-max green">
68-
<i class="osf-icon-upload"> </i>
69-
<span>{{ 'project.files.actions.uploadFile' | translate }}</span>
70-
</div>
71-
</p-button>
72-
</div>
68+
<p-button
69+
[disabled]="fileIsUploading"
70+
outlined
71+
raised
72+
severity="success"
73+
[icon]="'fas fa-upload'"
74+
[label]="'project.files.actions.uploadFile' | translate"
75+
(click)="fileInput.click()"
76+
>
77+
</p-button>
7378

7479
<input #fileInput type="file" class="hidden" (change)="onFileSelected($event)" />
7580
</div>

src/app/features/project/metadata/project-metadata.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ <h2>{{ meta.title }}</h2>
2222
<p>{{ meta.description }}</p>
2323
</div>
2424

25-
<p-button severity="secondary"> Select </p-button>
25+
<p-button severity="secondary" label="Select"> </p-button>
2626
</div>
2727
}
2828
</div>
2929

30-
<div class="flex justify-content-end flex-0 mt-auto">
31-
<p-button label="Cancel" [link]="true" severity="info" class="w-10rem btn-full-width"></p-button>
30+
<div class="flex justify-content-end flex-0 mt-auto gap-2">
31+
<p-button label="Cancel" severity="info" class="w-10rem btn-full-width"></p-button>
3232
<p-button class="w-10rem btn-full-width bg-primary-blue-second" label="Next"></p-button>
3333
</div>
3434
</section>

src/app/features/project/overview/components/overview-components/overview-components.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ <h2 class="flex gap-2">
2222
<a class="component-title" [href]="'my-projects/' + component.id">{{ component.title }}</a>
2323
</h2>
2424
<div>
25-
<p-button class="btn-icon" (click)="componentActionMenu.toggle($event)">
26-
<i class="osf-icon-dots"></i>
25+
<p-button severity="contrast" raised variant="outlined" (click)="componentActionMenu.toggle($event)">
26+
<i class="fas fa-ellipsis-vertical"></i>
2727
</p-button>
2828

2929
<p-menu appendTo="body" #componentActionMenu [model]="componentActionItems(component.id)" popup>

src/app/features/project/settings/components/project-detail-setting-accordion/project-detail-setting-accordion.component.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
class="flex justify-between align-items-center mb-2 w-full border-bottom-1 border-gray-300 gap-2 flex-column sm:flex-row sm:gap-4"
33
>
44
<div class="flex align-items-center gap-2 cursor-pointer w-full sm:w-5">
5-
<p-button
6-
role="button"
7-
[ariaLabel]="'Toggle ' + title()"
8-
class="btn-icon-text form-btn button-shadow-none"
9-
(click)="toggle()"
10-
>
5+
<p-button role="button" variant="text" severity="contrast" [ariaLabel]="'Toggle ' + title()" (click)="toggle()">
116
<i class="pi" [ngClass]="{ 'pi-plus': !expanded(), 'pi-minus': expanded() }"></i>
127
</p-button>
138

src/app/features/settings/account-settings/components/add-email/add-email.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
class="w-full"
1717
styleClass="w-full"
1818
(onClick)="dialogRef.close()"
19-
[text]="true"
20-
severity="secondary"
19+
severity="info"
2120
[label]="'settings.accountSettings.addEmail.buttons.cancel' | translate"
2221
>
2322
</p-button>

src/app/features/settings/account-settings/components/connected-emails/connected-emails.component.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ <h2 class="account-setting-header">{{ 'settings.accountSettings.connectedEmails.
5050
}
5151
</div>
5252

53-
<p-button severity="secondary" (click)="makePrimary(email.id)">
54-
{{ 'settings.accountSettings.connectedEmails.buttons.makePrimary' | translate }}
53+
<p-button
54+
severity="secondary"
55+
(click)="makePrimary(email.id)"
56+
[label]="'settings.accountSettings.connectedEmails.buttons.makePrimary' | translate"
57+
>
5558
</p-button>
5659
</div>
5760
}

src/app/shared/utils/default-confirmation-config.helper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const defaultConfirmationConfig: Confirmation = {
88
rejectButtonProps: {
99
label: 'Cancel',
1010
severity: 'info',
11-
outlined: true,
1211
},
1312
acceptButtonProps: {
1413
label: 'Confirm',

0 commit comments

Comments
 (0)