Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions specifyweb/frontend/js_src/lib/components/Atoms/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ export const Select = wrap<
* the background in dark-mode. This is a fix:
*/
if (props.required !== true && props.multiple === true) {
selected.map((option) => option.classList.add('dark:bg-neutral-100'));
selected.map((option) => option.classList.add('dark:bg-neutral-500')); // highlights selected object less bright
unselected.map((option) =>
option.classList.remove('dark:bg-neutral-100')
option.classList.remove('dark:bg-neutral-500') // prevents a previously selected option from remaining highlighted
);
}
const value = (event.target as HTMLSelectElement).value;
Expand Down
Loading