Skip to content

Commit d73a405

Browse files
authored
[datetime] fix: increase caption select CSS specificity (#6295)
1 parent 7ebfe22 commit d73a405

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/datetime/src/components/date-picker/_datepicker.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ $header-margin: ($header-height - $pt-input-height) * 0.5 !default;
168168
justify-content: space-between;
169169
margin: 0 ($pt-button-height - $datepicker-padding) $datepicker-padding;
170170

171-
// HTMLSelect overrides for a narrower appearance
172-
select {
171+
// override HTMLSelect styles for a narrower appearance
172+
// N.B. these styles are important to achieve accurate measurements to position the dropdown arrows in <DatePickerCaption>
173+
.#{$ns}-html-select select {
173174
font-weight: 600;
174175
padding-left: $datepicker-padding;
175176
padding-right: $pt-icon-size-standard;

0 commit comments

Comments
 (0)