Skip to content

Hide clock icon in FluentTimePicker #1193

Answered by dvoituron
cmsw97 asked this question in Q&A
Discussion options

You must be logged in to vote

The FluentDatePicker is a custom element where we can update part of the user interface.
But the FluentTimePicker uses the default HTML element input type="time" and it's not possible to easily customize the Browser icon.

You'll probably find a solution using -webkit-calendar-picker-indicator.
Example: https://dev.to/codeclown/styling-a-native-date-input-into-a-custom-no-library-datepicker-2in

.myTimeInput::-webkit-calendar-picker-indicator {    
    background-image: url("data:image/svg+xml;base64,PHN2Z...");
    background-size: 14px 14px;
    background-position: center;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cmsw97
Comment options

Answer selected by cmsw97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants