Skip to content

Commit

Permalink
[EuiSuperDatePicker] Fix border-radius & remove unnecessary CSS/overr…
Browse files Browse the repository at this point in the history
…ides
  • Loading branch information
cee-chen committed Apr 12, 2023
1 parent b5c077d commit ea6619f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,10 @@
overflow: hidden;
background-color: $euiFormBackgroundColor;

> .euiDatePickerRange {
max-width: none;
width: auto;
&:last-child {
border-radius: 0 $euiFormControlBorderRadius $euiFormControlBorderRadius 0;
}

&:not(:last-child) > .euiDatePickerRange {
&,
.euiDatePopoverButton--end,
.euiSuperDatePicker__prettyFormat {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}

& > .euiFormControlLayoutDelimited__input {
flex-grow: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
}

.euiDatePopoverButton--start {
text-align: right;
text-align: center;
}

.euiDatePopoverButton--end {
text-align: left;
text-align: center;
}
10 changes: 0 additions & 10 deletions src/themes/amsterdam/overrides/_date_picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,3 @@
.euiDatePicker.euiDatePicker--shadow.euiDatePicker--inline .react-datepicker {
border: none;
}

.euiSuperDatePicker__prettyFormat {
border-top-right-radius: $euiFormControlBorderRadius;
border-bottom-right-radius: $euiFormControlBorderRadius;
}

.euiFormControlLayout--compressed.euiSuperDatePicker .euiSuperDatePicker__prettyFormat {
border-top-right-radius: $euiFormControlCompressedBorderRadius;
border-bottom-right-radius: $euiFormControlCompressedBorderRadius;
}
14 changes: 0 additions & 14 deletions src/themes/amsterdam/overrides/_date_popover_button.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/themes/amsterdam/overrides/_index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@import 'combo_box';
@import 'data_grid';
@import 'date_picker';
@import 'date_popover_button';
@import 'description_list';
@import 'filter_group';
@import 'form_control_layout';
Expand Down

0 comments on commit ea6619f

Please sign in to comment.