Skip to content

Commit

Permalink
Merge pull request #5883 from THEBOSS0369/dark_theme_search
Browse files Browse the repository at this point in the history
Input Search Dark Mode Friendly
  • Loading branch information
vishalvivekm authored Nov 3, 2024
2 parents b672bfc + 8d49b7a commit 360f670
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/sections/Company/News-grid/NewsGrid.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,5 @@ export const NewsPageWrapper = styled.div`
}
}
.search-box {
margin: auto;
input {
background-color: ${props => props.theme.shadowDarkColor}!important;
color: ${props => props.theme.text};
transition: all 450ms ease 0s;
}
}
`;
11 changes: 11 additions & 0 deletions src/sections/Meshery/Meshery-integrations/Integration.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ export const HoneycombGrid = styled.div`
}
}
.search-box {
input {
border: 1px solid ${props => props.theme.headingColor} !important;
&:focus {
border-color: #fff !important;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px !important;
}
}
}
.category {
display: flex;
flex-wrap: wrap;
Expand Down
19 changes: 19 additions & 0 deletions src/sections/app.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,25 @@ section{
position: relative;
}
// styling for the searchbox
.search-box {
input {
background-color: ${props => props.theme.shadowDarkColor}!important;
color: ${props => props.theme.text};
transition: all 450ms ease 0s;
&:focus {
border-color: #fff !important;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px !important;
}
}
// for the Search Icon
svg {
color: ${(props) => props.theme.searchIconColor};
}
}
/* Modal styling needs to be applied to the global CSS */
.Modal {
Expand Down
6 changes: 6 additions & 0 deletions src/theme/app/themeStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const lighttheme = {

headingColor: "#111111",

// searchbox Icon Color
searchIconColor: "#333333",

// light slate gray (medium gray)
textColor: "#000000",
shadowColor: "rgba(0, 0, 0, 0.05)",
Expand Down Expand Up @@ -267,6 +270,9 @@ export const darktheme = {

headingColor: "#000000",

// searchbox icon color
searchIconColor: "#FFFFFF",

// light slate gray (medium gray)
textColor: "#000000",
shadowColor: "rgba(255, 255, 255, 0.05)",
Expand Down

0 comments on commit 360f670

Please sign in to comment.