Skip to content

Commit b0f1e09

Browse files
committed
fix(Input): hide input date icon
1 parent 21bfeb7 commit b0f1e09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/input/input.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ const InputComponent = React.forwardRef<HTMLInputElement, React.PropsWithChildre
252252
-webkit-box-shadow: 0 0 0 30px var(--color-background-1000) inset !important;
253253
-webkit-text-fill-color: var(--input-color) !important;
254254
}
255+
256+
input[type='date']::-webkit-calendar-picker-indicator,
257+
input[type='time']::-webkit-calendar-picker-indicator,
258+
input[type='datetime-local']::-webkit-calendar-picker-indicator {
259+
display: none;
260+
}
255261
256262
${SCALE.padding(0, value => `padding: ${value.top} ${value.right} ${value.bottom} ${value.left};`, undefined, 'with-label')}
257263
${SCALE.margin(0, value => `margin: ${value.top} ${value.right} ${value.bottom} ${value.left};`, undefined, 'with-label')}

0 commit comments

Comments
 (0)