Skip to content

Commit 64c48b9

Browse files
committed
Fix: Date inputs between selector style issue
1 parent 358f452 commit 64c48b9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/components/src/components/hds/filter-bar/filter-group/date.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"hds.components.filter-bar.filter-group.date.between-value-inputs.start-placeholder"
3434
default="Start"
3535
}}
36-
class="hds-filter-bar__filter-group__field"
36+
class="hds-filter-bar__filter-group__field hds-filter-bar__filter-group__field--between"
3737
{{on "change" this.onBetweenValueStartChange}}
3838
/>
3939
<Hds::Form::TextInput::Base
@@ -44,7 +44,7 @@
4444
"hds.components.filter-bar.filter-group.date.between-value-inputs.end-placeholder"
4545
default="End"
4646
}}
47-
class="hds-filter-bar__filter-group__field"
47+
class="hds-filter-bar__filter-group__field hds-filter-bar__filter-group__field--between"
4848
{{on "change" this.onBetweenValueEndChange}}
4949
/>
5050
</Hds::Layout::Flex>

packages/components/src/styles/components/filter-bar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@
153153
.hds-filter-bar__filter-group__field[type="time"] {
154154
width: 100%;
155155
}
156+
157+
.hds-filter-bar__filter-group__field--between[type="date"] {
158+
// Due to a limitation with the native date input's min-width in Chrome, we need to explicitly set the width.
159+
width: 130px;
160+
}
156161
}
157162

158163
.hds-filter-bar__filter-group__numerical,

0 commit comments

Comments
 (0)