Skip to content

Commit 0cb1730

Browse files
committed
ux: make search placeholder text darker
1 parent 0ca1032 commit 0cb1730

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

reana-ui/src/components/Search.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { unstable_batchedUpdates } from "react-dom";
1313
import { Input } from "semantic-ui-react";
1414
import debounce from "lodash/debounce";
1515

16+
import styles from "./Search.module.scss";
17+
1618
const TYPING_DELAY = 1000;
1719

1820
export default function Search({ search }) {
@@ -22,6 +24,7 @@ export default function Search({ search }) {
2224
fluid
2325
icon="search"
2426
placeholder="Search..."
27+
className={styles.input}
2528
onChange={(_, data) => handleChange(data.value)}
2629
/>
2730
);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
-*- coding: utf-8 -*-
3+
4+
This file is part of REANA.
5+
Copyright (C) 2022 CERN.
6+
7+
REANA is free software; you can redistribute it and/or modify it
8+
under the terms of the MIT License; see LICENSE file for more details.
9+
*/
10+
11+
@import "@palette";
12+
13+
:global(.ui.input).input {
14+
:global(input)::placeholder {
15+
color: $gray;
16+
}
17+
18+
:global(input):focus::placeholder {
19+
color: darken($gray, 30%);
20+
}
21+
}

0 commit comments

Comments
 (0)