Skip to content

Commit e89852b

Browse files
committed
fix: adjusted highlight color for selected chronostrat
1 parent 87e1107 commit e89852b

File tree

1 file changed

+2
-2
lines changed
  • specifyweb/frontend/js_src/lib/components/Atoms

1 file changed

+2
-2
lines changed

specifyweb/frontend/js_src/lib/components/Atoms/Form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ export const Select = wrap<
352352
* the background in dark-mode. This is a fix:
353353
*/
354354
if (props.required !== true && props.multiple === true) {
355-
selected.map((option) => option.classList.add('dark:bg-neutral-100'));
355+
selected.map((option) => option.classList.add('dark:bg-neutral-500')); // highlights selected object less bright
356356
unselected.map((option) =>
357-
option.classList.remove('dark:bg-neutral-100')
357+
option.classList.remove('dark:bg-neutral-500') // prevents a previously selected option from remaining highlighted
358358
);
359359
}
360360
const value = (event.target as HTMLSelectElement).value;

0 commit comments

Comments
 (0)