Skip to content

Commit cedea92

Browse files
committed
VPR-104 fix(a11y): align CTS button and badge colors to UC Davis brand palette
- Replace color="green" with color="positive" (Redwood) on ~15 add/create buttons - Replace color="red"/"red-5"/"red-7" with color="negative" (Merlot) on ~12 delete buttons - Replace color="blue" with color="primary" on Last Week badges - Add text-color="dark" to 3 info-colored chips/buttons for AA contrast - Fix duplicate text-color attributes in CompetenciesBundleReport - Remove redundant global comments and unused function parameters
1 parent 56af20c commit cedea92

15 files changed

Lines changed: 38 additions & 38 deletions

VueApp/src/CTS/components/ServiceSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ void getServices()
9595
side
9696
v-if="scope.opt.thisWeek"
9797
>
98-
<q-badge color="green"> This Week </q-badge>
98+
<q-badge color="positive"> This Week </q-badge>
9999
</q-item-section>
100100
<q-item-section
101101
side
102102
v-if="scope.opt.lastWeek && !scope.opt.thisWeek"
103103
>
104-
<q-badge color="blue"> Last Week </q-badge>
104+
<q-badge color="primary"> Last Week </q-badge>
105105
</q-item-section>
106106
<q-item-section
107107
side

VueApp/src/CTS/pages/CompetenciesBundleReport.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ onMounted(() => {
238238
v-for="bundle in props.value"
239239
:key="bundle.bundleId"
240240
color="info"
241-
text-color="white"
241+
text-color="dark"
242242
size="sm"
243243
dense
244244
class="q-ma-xs"
@@ -301,7 +301,7 @@ onMounted(() => {
301301
v-for="bundle in props.row.bundles"
302302
:key="bundle.bundleId"
303303
color="info"
304-
text-color="white"
304+
text-color="dark"
305305
size="sm"
306306
dense
307307
>

VueApp/src/CTS/pages/CourseStudents.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const student = ref("")
6060
<q-btn
6161
dense
6262
icon="delete"
63-
color="red-5"
63+
color="negative"
6464
flat
6565
size="sm"
6666
></q-btn>
@@ -90,7 +90,7 @@ const student = ref("")
9090
<q-btn
9191
dense
9292
icon="delete"
93-
color="red-5"
93+
color="negative"
9494
flat
9595
size="sm"
9696
></q-btn>
@@ -120,7 +120,7 @@ const student = ref("")
120120
<q-btn
121121
dense
122122
icon="delete"
123-
color="red-5"
123+
color="negative"
124124
flat
125125
size="sm"
126126
></q-btn>

VueApp/src/CTS/pages/ManageBundleCompetencies.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ load()
206206
label="Add Group"
207207
@click="showGroupForm = true"
208208
class="q-mt-lg q-px-sm"
209-
color="green"
209+
color="positive"
210210
icon="add"
211211
></q-btn>
212212
<div
@@ -253,7 +253,7 @@ load()
253253
v-if="bundleCompetencyGroup?.bundleCompetencyGroupId"
254254
type="button"
255255
@click="removeBundleCompetencyGroup()"
256-
color="red-5"
256+
color="negative"
257257
dense
258258
class="col-5 col-sm-2 col-md-1 q-px-sm q-mr-md"
259259
label="Delete"
@@ -304,7 +304,7 @@ load()
304304
type="submit"
305305
label="Add"
306306
icon="add"
307-
color="green"
307+
color="positive"
308308
class="col-auto q-ml-md q-px-sm"
309309
></q-btn>
310310
</div>
@@ -423,7 +423,7 @@ load()
423423
<q-icon
424424
v-if="props.row.levels.findIndex((l: any) => l.levelId === level.levelId) > -1"
425425
name="check"
426-
color="green"
426+
color="positive"
427427
></q-icon>
428428
</q-td>
429429
</template>
@@ -441,7 +441,7 @@ load()
441441
dense
442442
size="sm"
443443
icon="delete"
444-
color="red-5"
444+
color="negative"
445445
@click="removeBundleCompetency(props.row)"
446446
></q-btn>
447447
</q-td>

VueApp/src/CTS/pages/ManageBundles.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ load()
150150
v-if="bundle?.bundleId"
151151
type="button"
152152
@click="removeBundle()"
153-
color="red-5"
153+
color="negative"
154154
dense
155155
class="col-5 col-sm-2 col-md-1 q-px-sm q-mr-md"
156156
label="Delete"
@@ -211,7 +211,7 @@ load()
211211
<q-icon
212212
v-if="props.row.clinical"
213213
name="check"
214-
color="green"
214+
color="positive"
215215
/>
216216
</q-td>
217217
</template>
@@ -220,7 +220,7 @@ load()
220220
<q-icon
221221
v-if="props.row.assessment"
222222
name="check"
223-
color="green"
223+
color="positive"
224224
/>
225225
</q-td>
226226
</template>
@@ -229,7 +229,7 @@ load()
229229
<q-icon
230230
v-if="props.row.milestone"
231231
name="check"
232-
color="green"
232+
color="positive"
233233
/>
234234
</q-td>
235235
</template>

VueApp/src/CTS/pages/ManageCompetencies.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ load()
210210
no-caps
211211
label="Delete"
212212
v-if="selectedComp.competencyId != null"
213-
color="red-5"
213+
color="negative"
214214
class="q-px-md q-mx-md col"
215215
@click="deleteComp()"
216216
></q-btn>
@@ -254,7 +254,7 @@ load()
254254
dense
255255
no-caps
256256
class="q-px-sm q-ml-md"
257-
color="green"
257+
color="positive"
258258
icon="add"
259259
label="Add Competency"
260260
@click="showForm = true"
@@ -280,7 +280,7 @@ load()
280280
flat
281281
size="sm"
282282
icon="add"
283-
color="green"
283+
color="positive"
284284
@click="addChild(prop.node.comp)"
285285
title="Add child of this competency"
286286
></q-btn>
@@ -305,7 +305,7 @@ load()
305305
}}</span>
306306
<q-icon
307307
name="school"
308-
color="green"
308+
color="positive"
309309
v-if="prop.node.comp.canLinkToStudent"
310310
class="q-ml-md"
311311
></q-icon>

VueApp/src/CTS/pages/ManageDomains.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ getDomains()
107107
label="Delete"
108108
no-caps
109109
dense
110-
color="red-7"
110+
color="negative"
111111
class="col col-4 col-lg-1 q-ml-md"
112112
></q-btn>
113113
<q-btn
@@ -117,6 +117,7 @@ getDomains()
117117
no-caps
118118
dense
119119
color="info"
120+
text-color="dark"
120121
class="col col-4 col-lg-1 q-ml-md"
121122
></q-btn>
122123
</div>

VueApp/src/CTS/pages/ManageEpas.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ getEpas()
152152
no-caps
153153
type="button"
154154
label="Delete EPA"
155-
color="red"
155+
color="negative"
156156
@click="deleteEpa()"
157157
v-if="epa?.epaId"
158158
class="q-mt-sm q-ml-lg col col-4 col-md-4 col-lg-1"
@@ -166,7 +166,7 @@ getEpas()
166166
no-caps
167167
size="md"
168168
label="Add EPA"
169-
color="green"
169+
color="positive"
170170
@click="showForm = true"
171171
/>
172172
</div>

VueApp/src/CTS/pages/ManageLevels.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ loadLevels()
186186
no-caps
187187
type="button"
188188
label="Delete Level"
189-
color="red"
189+
color="negative"
190190
class="q-mt-sm q-ml-lg col col-4 col-md-1"
191191
@click="deleteLevel"
192192
></q-btn>

VueApp/src/CTS/pages/ManageMilestones.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ load()
125125
icon="add"
126126
label="Add Milestone"
127127
type="submit"
128-
color="green"
128+
color="positive"
129129
></q-btn>
130130
</div>
131131
</div>

0 commit comments

Comments
 (0)