Skip to content

Commit 05f413c

Browse files
committed
Merge branch 'main' into deployment
2 parents 7621c48 + 3180f9f commit 05f413c

File tree

3 files changed

+49
-28
lines changed

3 files changed

+49
-28
lines changed

src/js/components/AdvancedSearchForm/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{ value: 'title', label: 'Title' },
3030
{ value: 'author', label: 'Author' },
3131
{ value: 'subject', label: 'Subject' },
32-
{ value: 'isn', label: 'ISBN/ISSN' },
32+
{ value: 'isn', label: 'ISBN, ISSN, OCLC, etc.' },
3333
{ value: 'publisher', label: 'Publisher' },
3434
{ value: 'series', label: 'Series' },
3535
// { field: 'year', label: 'Year of Publication' },

src/js/components/SearchBar/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
<option value="title">Title</option>
196196
<option value="author">Author</option>
197197
<option value="subject">Subject</option>
198-
<option value="isn">ISBN/ISSN</option>
198+
<option value="isn">ISBN, ISSN, OCLC, etc.</option>
199199
<option value="publisher">Publisher</option>
200200
<option value="seriestitle">Series Title</option>
201201
</select>

src/scss/apps.scss

Lines changed: 47 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ body {
77
}
88

99
.apps {
10-
transition: visibility 0s linear 100ms, opacity 150ms;
10+
transition:
11+
visibility 0s linear 100ms,
12+
opacity 150ms;
1113

1214
// &[data-initialized='true'] {
1315
// visibility: visible !important;
@@ -56,10 +58,7 @@ body {
5658
gap: 1.5rem;
5759
align-items: start;
5860
margin-top: 2.625rem;
59-
margin-inline: max(
60-
clamp(0.938rem, calc(0.268rem + 3.348vw), 1.875rem),
61-
((100% - 73.125rem) / 2)
62-
);
61+
margin-inline: max(clamp(0.938rem, calc(0.268rem + 3.348vw), 1.875rem), ((100% - 73.125rem) / 2));
6362

6463
// Phire is 48em, but that might assume a main
6564
// column that wraps more than HTDL
@@ -130,7 +129,7 @@ body {
130129
}
131130
}
132131

133-
button[data-action="expand-filter"] {
132+
button[data-action='expand-filter'] {
134133
&[aria-expanded='false'] .is-expanded {
135134
display: none;
136135
}
@@ -194,7 +193,6 @@ body {
194193
&:has(+ span) {
195194
border-top-right-radius: var(--bs-list-group-border-radius) !important;
196195
border-bottom-right-radius: var(--bs-list-group-border-radius) !important;
197-
198196
}
199197

200198
// label colors
@@ -210,10 +208,11 @@ body {
210208
margin-left: auto;
211209
}
212210

213-
&:hover .visited-link, &:focus .visited-link {
211+
&:hover .visited-link,
212+
&:focus .visited-link {
214213
color: var(--bs-list-group-action-hover-bg);
215214
}
216-
215+
217216
&:active .visited-link {
218217
color: var(--bs-list-group-action-active-bg);
219218
}
@@ -222,50 +221,76 @@ body {
222221
color: var(--bs-list-group-color);
223222
}
224223

224+
// z-index on this was causing focus ring on the neighboring
225+
// list-group-item to visually "slide" behind/underneath the full-view item
226+
&.active {
227+
z-index: auto;
228+
}
229+
225230
&.active:visited .visited-link {
226231
color: var(--bs-list-group-active-color);
227232
}
228233

229234
&.active .visited-link {
230235
color: var(--bs-list-group-active-bg);
231-
}
236+
}
232237

233238
&[data-activated-role] {
234239
background: var(--color-primary-800);
235240
color: var(--color-shades-0);
241+
border-color: var(--color-primary-800);
236242

237-
&:hover, &:focus {
243+
&:hover,
244+
&:focus {
238245
background: var(--color-shades-0);
239246
color: var(--color-primary-800);
247+
border-color: var(--bs-list-group-border-color);
248+
}
249+
250+
&:active {
251+
background: var(--color-primary-900);
252+
color: var(--color-shades-0);
253+
border-color: var(--color-primary-900);
240254
}
241255

256+
//if the link hasn't been visited, then on hover/focus, the icon should match the background (800 on 800)
242257
.visited-link {
243258
color: var(--color-primary-800);
244259
}
245-
246-
&:visited .visited-link {
247-
color: var(--color-shades-0);
248-
}
249260

250-
&:hover .visited-link, &:focus .visited-link {
261+
//if the link hasn't been visited, then on hover/focus the icon should match the background (white on white)
262+
&:hover .visited-link,
263+
&:focus .visited-link {
251264
color: var(--color-shades-0);
252265
}
253266

267+
//if the link hasn't been visited, then on active state, the icon should match the background (900 on 900)
254268
&:active .visited-link {
269+
color: var(--color-primary-900);
270+
}
271+
272+
// the rest of these are *visited* states, which should contrast with the background
273+
&:visited .visited-link,
274+
&:visited:active .visited-link,
275+
&:visited:active:hover .visited-link {
255276
color: var(--color-shades-0);
256277
}
257278

258-
&:visited:hover .visited-link, &:visited:focus .visited-link {
279+
&:visited:hover .visited-link,
280+
&:visited:focus .visited-link {
259281
color: var(--color-primary-800);
260282
}
261-
262283
}
263284
}
264-
.list-group-horizontal-sm>.list-group-item {
285+
.list-group-horizontal-sm > .list-group-item {
265286
&:focus-visible {
266287
border-top-right-radius: 6px;
267288
border-bottom-left-radius: 6px;
268289
}
290+
&:last-child:focus-visible {
291+
border-inline-start-width: 1px;
292+
margin-inline-start: -1px;
293+
}
269294
}
270295

271296
// by default, hide the 10+nth facets
@@ -315,15 +340,11 @@ body {
315340
border-right: var(--border);
316341
background-color: var(--color-primary-200);
317342
}
318-
:is(thead, tbody:first-child, caption:first-child + tbody)
319-
tr:first-child
320-
> :first-child {
343+
:is(thead, tbody:first-child, caption:first-child + tbody) tr:first-child > :first-child {
321344
border-left: var(--border);
322345
border-top-left-radius: 0.375rem;
323346
}
324-
:is(thead, tbody:first-child, caption:first-child + tbody)
325-
tr:first-child
326-
> :last-child {
347+
:is(thead, tbody:first-child, caption:first-child + tbody) tr:first-child > :last-child {
327348
border-right: var(--border);
328349
border-top-right-radius: 0.375rem;
329350
}
@@ -387,7 +408,7 @@ main.error::before {
387408
}
388409

389410
.bg-vaguely-faded {
390-
background: rgba(255,255,255,0.75);
411+
background: rgba(255, 255, 255, 0.75);
391412
}
392413

393414
.alert p:last-child {

0 commit comments

Comments
 (0)