Skip to content

Commit

Permalink
fix(datepicker): better fill color for svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
flauc committed Nov 25, 2024
1 parent c30d1f7 commit 4c676ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<!-- <ChipsDemo /> -->
<!-- <CkEditorDemo /> -->
<!-- <DateRangeDemo /> -->
<!-- <DatepickerDemo /> -->
<DatepickerDemo />
<!-- <FileListDemo /> -->
<!-- <FileUploadDemo /> -->
<!-- <InputDemo /> -->
Expand Down
10 changes: 9 additions & 1 deletion packages/lib/src/form-fields/datepicker/datepicker.wc.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;

> svg {
fill: currentColor;
}

&:hover {
background-color: var(--background-secondary);
}
Expand All @@ -155,7 +159,7 @@
display: flex;
border: 0;

& button {
& > button {
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -165,6 +169,10 @@
border: 0;
border-radius: 50%;

> svg {
fill: currentColor;
}

&:not(:disabled):hover {
background-color: var(--background-secondary);
}
Expand Down

0 comments on commit 4c676ac

Please sign in to comment.