Skip to content

Commit 360f670

Browse files
author
Vivek Vishal
authored
Merge pull request #5883 from THEBOSS0369/dark_theme_search
Input Search Dark Mode Friendly
2 parents b672bfc + 8d49b7a commit 360f670

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

src/sections/Company/News-grid/NewsGrid.style.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,5 @@ export const NewsPageWrapper = styled.div`
9696
}
9797
9898
}
99-
.search-box {
100-
margin: auto;
101-
input {
102-
background-color: ${props => props.theme.shadowDarkColor}!important;
103-
color: ${props => props.theme.text};
104-
transition: all 450ms ease 0s;
105-
}
106-
}
10799
108100
`;

src/sections/Meshery/Meshery-integrations/Integration.style.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ export const HoneycombGrid = styled.div`
1616
}
1717
}
1818
19+
.search-box {
20+
input {
21+
border: 1px solid ${props => props.theme.headingColor} !important;
22+
23+
&:focus {
24+
border-color: #fff !important;
25+
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px !important;
26+
}
27+
}
28+
}
29+
1930
.category {
2031
display: flex;
2132
flex-wrap: wrap;

src/sections/app.style.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,25 @@ section{
174174
position: relative;
175175
}
176176
177+
// styling for the searchbox
178+
.search-box {
179+
input {
180+
background-color: ${props => props.theme.shadowDarkColor}!important;
181+
color: ${props => props.theme.text};
182+
transition: all 450ms ease 0s;
183+
184+
&:focus {
185+
border-color: #fff !important;
186+
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px !important;
187+
}
188+
}
189+
190+
// for the Search Icon
191+
svg {
192+
color: ${(props) => props.theme.searchIconColor};
193+
}
194+
}
195+
177196
/* Modal styling needs to be applied to the global CSS */
178197
179198
.Modal {

src/theme/app/themeStyles.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const lighttheme = {
3838

3939
headingColor: "#111111",
4040

41+
// searchbox Icon Color
42+
searchIconColor: "#333333",
43+
4144
// light slate gray (medium gray)
4245
textColor: "#000000",
4346
shadowColor: "rgba(0, 0, 0, 0.05)",
@@ -267,6 +270,9 @@ export const darktheme = {
267270

268271
headingColor: "#000000",
269272

273+
// searchbox icon color
274+
searchIconColor: "#FFFFFF",
275+
270276
// light slate gray (medium gray)
271277
textColor: "#000000",
272278
shadowColor: "rgba(255, 255, 255, 0.05)",

0 commit comments

Comments
 (0)