Skip to content

Commit 06a0e8b

Browse files
authored
[ENG-9625], [ENG-8845], [ENG-9076] Fix contrast accessibility issues (#823)
- Ticket: [ENG-9625], [ENG-8845], [ENG-9076] - Feature flag: n/a ## Summary of Changes 1. Fixed accessibility issue. 2. Changed inactive color for toggle button.
1 parent a97c915 commit 06a0e8b

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

src/app/core/components/osf-banners/cookie-consent-banner/cookie-consent-banner.component.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
{{ 'toast.cookie-consent.message' | translate }}
99
</div>
1010
<div class="row-fixed flex justify-content-end">
11-
<p-button link [label]="'toast.cookie-consent.accept' | translate" (onClick)="acceptCookies()"> </p-button>
11+
<p-button
12+
class="btn-link-dark-blue"
13+
link
14+
[label]="'toast.cookie-consent.accept' | translate"
15+
(onClick)="acceptCookies()"
16+
/>
1217
</div>
1318
</div>
1419
</ng-template>

src/app/features/project/overview/components/project-overview-toolbar/project-overview-toolbar.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.inactive {
2-
color: var(--grey-1);
2+
color: var(--grey-4);
33
}
44

55
.storage {

src/app/shared/components/resource-card/resource-card.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h2>
5555
<div class="flex flex-row gap-1 line-height-3">
5656
<p class="white-space-nowrap">{{ 'resourceCard.labels.from' | translate }}</p>
5757
<a
58-
class="block line-height-4 white-space-normal word-break-word"
58+
class="block white-space-normal word-break-word"
5959
[href]="resource().isPartOf!.absoluteUrl"
6060
target="_blank"
6161
rel="noopener noreferrer"
@@ -69,7 +69,7 @@ <h2>
6969
<div class="flex flex-row gap-1 line-height-3">
7070
<p class="white-space-nowrap">{{ 'resourceCard.labels.from' | translate }}</p>
7171
<a
72-
class="block line-height-4 white-space-normal"
72+
class="block white-space-normal"
7373
[href]="resource().isContainedBy!.absoluteUrl"
7474
target="_blank"
7575
rel="noopener noreferrer"

src/styles/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ $base-font-size: 16px;
3030
--grey-1: #8b97a4;
3131
--grey-2: #e0e1e2;
3232
--grey-3: #eff0f1;
33+
--grey-4: #606b7b;
3334
--grey-outline: #00000029;
3435
--white: #ffffff;
3536

src/styles/overrides/button.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@
7373
.copy-icon-btn .p-button {
7474
height: 1.5rem;
7575
}
76+
77+
.btn-link-dark-blue {
78+
--p-button-link-color: var(--dark-blue-2);
79+
}

src/styles/overrides/tag.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--p-tag-warn-background: var(--yellow-2);
66
--p-tag-warn-color: var(--yellow-1);
77

8-
--p-tag-secondary-background: var(--grey-1);
8+
--p-tag-secondary-background: var(--grey-4);
99
--p-tag-secondary-color: var(--white);
1010

1111
--p-tag-info-background: var(--bg-blue-2);

0 commit comments

Comments
 (0)