Skip to content

Commit

Permalink
Add color to calendar and password icons
Browse files Browse the repository at this point in the history
  • Loading branch information
iacopolea committed Jan 8, 2024
1 parent 0a1450b commit 4d62166
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/stories/DateInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { CalendarEventFill as CalendarIcon } from "react-bootstrap-icons";
import styled from "styled-components";
import { Button } from "../button/Button";
import { StyledInput as FormInput } from "../form/input/Input";
import { aqBootstrapTheme } from "../theme/defaultTheme";

const StyledInput = styled(FormInput)`
.mbsc-appquality.mbsc-textfield {
Expand Down Expand Up @@ -130,7 +131,7 @@ export const DateInput = ({
kind="transparent"
onClick={show}
>
<CalendarIcon />
<CalendarIcon color={aqBootstrapTheme.variants.primary} />
</Button>
</span>
</StyledInput>
Expand Down
5 changes: 3 additions & 2 deletions src/stories/form/input/inputIcons/PasswordIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { EyeFill, EyeSlash } from "react-bootstrap-icons";
import { Button } from "../../../button/Button";
import { aqBootstrapTheme } from "../../../theme/defaultTheme";

const PasswordIcon = ({
type,
Expand All @@ -25,7 +26,7 @@ const PasswordIcon = ({
kind="transparent"
onClick={() => setType("password")}
>
<EyeSlash />
<EyeSlash color={aqBootstrapTheme.variants.primary} />
</Button>
) : (
<Button
Expand All @@ -37,7 +38,7 @@ const PasswordIcon = ({
kind="transparent"
onClick={() => setType("text")}
>
<EyeFill />
<EyeFill color={aqBootstrapTheme.variants.primary} />
</Button>
)}
</span>
Expand Down

0 comments on commit 4d62166

Please sign in to comment.