Skip to content

Commit 2edaa6c

Browse files
author
Sebastian Thulin
committed
fix: temporal date picker hide
1 parent 8eae6c4 commit 2edaa6c

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"require": {
4141
"php": "^8.2",
4242
"erusev/parsedown": "^1.7",
43-
"helsingborg-stad/component-library": "^5.0",
43+
"helsingborg-stad/component-library": "^5.2",
4444
"ramsey/uuid": "^4.9"
4545
},
4646
"require-dev": {

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/components/field/style.scss

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,23 @@ $fields: "input, input[type="color"], input[type="text"], input[type="search"],
9090
border-radius: tokens.use($_, "border-radius");
9191
corner-shape: tokens.get($_, "corner-shape");
9292

93-
&::-webkit-calendar-picker-indicator {
94-
filter: brightness(0);
95-
opacity: 0.8;
93+
&[type="date"],
94+
&[type="time"],
95+
&[type="datetime-local"],
96+
&[type="month"],
97+
&[type="week"] {
98+
background-image: none;
99+
100+
&::-webkit-calendar-picker-indicator {
101+
opacity: 0;
102+
width: 0;
103+
height: 0;
104+
margin: 0;
105+
padding: 0;
106+
pointer-events: none;
107+
appearance: none;
108+
-webkit-appearance: none;
109+
}
96110
}
97111

98112
&[type="search"]::-webkit-search-cancel-button {

0 commit comments

Comments
 (0)