@@ -385,11 +385,10 @@ exports[`Metrics Top Menu Component renders Top Menu Component when enabled 1`]
385
385
className = " euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--directionRow euiFlexGroup--responsive"
386
386
>
387
387
<EuiFlexItem
388
- className = " metrics-search-bar-datepicker"
389
388
grow = { false }
390
389
>
391
390
<div
392
- className = " euiFlexItem euiFlexItem--flexGrowZero metrics-search-bar-datepicker "
391
+ className = " euiFlexItem euiFlexItem--flexGrowZero"
393
392
>
394
393
<EuiCompressedSuperDatePicker
395
394
commonlyUsedRanges = {
@@ -445,17 +444,17 @@ exports[`Metrics Top Menu Component renders Top Menu Component when enabled 1`]
445
444
onTimeChange = { [Function ]}
446
445
recentlyUsedRanges = { Array []}
447
446
refreshInterval = { 0 }
448
- showUpdateButton = { true }
447
+ showUpdateButton = { false }
449
448
start = " now-1d"
450
449
timeFormat = " HH:mm"
451
450
>
452
451
<EuiFlexGroup
453
- className = " euiSuperDatePicker__flexWrapper"
452
+ className = " euiSuperDatePicker__flexWrapper euiSuperDatePicker__flexWrapper--noUpdateButton "
454
453
gutterSize = " s"
455
454
responsive = { false }
456
455
>
457
456
<div
458
- className = " euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--directionRow euiSuperDatePicker__flexWrapper"
457
+ className = " euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--directionRow euiSuperDatePicker__flexWrapper euiSuperDatePicker__flexWrapper--noUpdateButton "
459
458
>
460
459
<EuiFlexItem >
461
460
<div
@@ -768,153 +767,70 @@ exports[`Metrics Top Menu Component renders Top Menu Component when enabled 1`]
768
767
</EuiFormControlLayout >
769
768
</div >
770
769
</EuiFlexItem >
771
- <EuiFlexItem
772
- grow = { false }
773
- >
774
- <div
775
- className = " euiFlexItem euiFlexItem--flexGrowZero"
776
- >
777
- <EuiSuperUpdateButton
778
- compressed = { true }
779
- data-test-subj = " superDatePickerApplyTimeButton"
780
- isDisabled = { false }
781
- isLoading = { false }
782
- needsUpdate = { false }
783
- onClick = { [Function ]}
784
- showTooltip = { true }
785
- >
786
- <EuiToolTip
787
- delay = " regular"
788
- position = " bottom"
789
- >
790
- <span
791
- className = " euiToolTipAnchor"
792
- onKeyUp = { [Function ]}
793
- onMouseOut = { [Function ]}
794
- onMouseOver = { [Function ]}
795
- >
796
- <EuiButton
797
- className = " euiSuperUpdateButton"
798
- color = " primary"
799
- data-test-subj = " superDatePickerApplyTimeButton"
800
- iconType = " refresh"
801
- isDisabled = { false }
802
- isLoading = { false }
803
- onBlur = { [Function ]}
804
- onClick = { [Function ]}
805
- onFocus = { [Function ]}
806
- size = " s"
807
- textProps = {
808
- Object {
809
- " className" : " euiSuperUpdateButton__text" ,
810
- }
811
- }
812
- >
813
- <EuiButtonDisplay
814
- baseClassName = " euiButton"
815
- className = " euiSuperUpdateButton"
816
- color = " primary"
817
- data-test-subj = " superDatePickerApplyTimeButton"
818
- disabled = { false }
819
- element = " button"
820
- iconType = " refresh"
821
- isDisabled = { false }
822
- isLoading = { false }
823
- onBlur = { [Function ]}
824
- onClick = { [Function ]}
825
- onFocus = { [Function ]}
826
- size = " s"
827
- textProps = {
828
- Object {
829
- " className" : " euiSuperUpdateButton__text" ,
830
- }
831
- }
832
- type = " button"
833
- >
834
- <button
835
- className = " euiButton euiButton--primary euiButton--small euiSuperUpdateButton"
836
- data-test-subj = " superDatePickerApplyTimeButton"
837
- disabled = { false }
838
- onBlur = { [Function ]}
839
- onClick = { [Function ]}
840
- onFocus = { [Function ]}
841
- style = {
842
- Object {
843
- " minWidth" : undefined ,
844
- }
845
- }
846
- type = " button"
847
- >
848
- <EuiButtonContent
849
- className = " euiButton__content"
850
- iconGap = " m"
851
- iconSide = " left"
852
- iconType = " refresh"
853
- isLoading = { false }
854
- textProps = {
855
- Object {
856
- " className" : " euiButton__text euiSuperUpdateButton__text" ,
857
- }
858
- }
859
- >
860
- <span
861
- className = " euiButtonContent euiButton__content"
862
- >
863
- <EuiIcon
864
- className = " euiButtonContent__icon"
865
- color = " inherit"
866
- size = " m"
867
- type = " refresh"
868
- >
869
- <EuiIconBeaker
870
- aria-hidden = { true }
871
- className = " euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonContent__icon"
872
- focusable = " false"
873
- role = " img"
874
- style = { null }
875
- >
876
- <svg
877
- aria-hidden = { true }
878
- className = " euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonContent__icon"
879
- focusable = " false"
880
- height = { 16 }
881
- role = " img"
882
- style = { null }
883
- viewBox = " 0 0 16 16"
884
- width = { 16 }
885
- xmlns = " http://www.w3.org/2000/svg"
886
- >
887
- <path
888
- d = " M5.277 10.088c.02.014.04.03.057.047.582.55 1.134.812 1.666.812.586 0 1.84-.293 3.713-.88L9 6.212V2H7v4.212l-1.723 3.876Zm-.438.987L3.539 14h8.922l-1.32-2.969C9.096 11.677 7.733 12 7 12c-.74 0-1.463-.315-2.161-.925ZM6 2H5V1h6v1h-1v4l3.375 7.594A1 1 0 0 1 12.461 15H3.54a1 1 0 0 1-.914-1.406L6 6V2Z"
889
- />
890
- </svg >
891
- </EuiIconBeaker >
892
- </EuiIcon >
893
- <span
894
- className = " euiButton__text euiSuperUpdateButton__text"
895
- >
896
- <EuiI18n
897
- default = " Refresh"
898
- token = " euiSuperUpdateButton.refreshButtonLabel"
899
- >
900
- Refresh
901
- </EuiI18n >
902
- </span >
903
- </span >
904
- </EuiButtonContent >
905
- </button >
906
- </EuiButtonDisplay >
907
- </EuiButton >
908
- </span >
909
- </EuiToolTip >
910
- </EuiSuperUpdateButton >
911
- </div >
912
- </EuiFlexItem >
913
770
</div >
914
771
</EuiFlexGroup >
915
772
</EuiCompressedSuperDatePicker >
916
773
</div >
917
774
</EuiFlexItem >
775
+ <EuiFlexItem
776
+ grow = { false }
777
+ >
778
+ <div
779
+ className = " euiFlexItem euiFlexItem--flexGrowZero"
780
+ >
781
+ <EuiButtonIcon
782
+ aria-label = " Refresh"
783
+ data-click-metric-element = " metrics.refresh_button"
784
+ data-test-subj = " superDatePickerApplyTimeButton"
785
+ display = " base"
786
+ iconType = " refresh"
787
+ onClick = { [Function ]}
788
+ size = " s"
789
+ >
790
+ <button
791
+ aria-label = " Refresh"
792
+ className = " euiButtonIcon euiButtonIcon--primary euiButtonIcon--small"
793
+ data-click-metric-element = " metrics.refresh_button"
794
+ data-test-subj = " superDatePickerApplyTimeButton"
795
+ disabled = { false }
796
+ onClick = { [Function ]}
797
+ type = " button"
798
+ >
799
+ <EuiIcon
800
+ aria-hidden = " true"
801
+ className = " euiButtonIcon__icon"
802
+ color = " inherit"
803
+ size = " m"
804
+ type = " refresh"
805
+ >
806
+ <EuiIconBeaker
807
+ aria-hidden = { true }
808
+ className = " euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonIcon__icon"
809
+ focusable = " false"
810
+ role = " img"
811
+ style = { null }
812
+ >
813
+ <svg
814
+ aria-hidden = { true }
815
+ className = " euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiButtonIcon__icon"
816
+ focusable = " false"
817
+ height = { 16 }
818
+ role = " img"
819
+ style = { null }
820
+ viewBox = " 0 0 16 16"
821
+ width = { 16 }
822
+ xmlns = " http://www.w3.org/2000/svg"
823
+ >
824
+ <path
825
+ d = " M5.277 10.088c.02.014.04.03.057.047.582.55 1.134.812 1.666.812.586 0 1.84-.293 3.713-.88L9 6.212V2H7v4.212l-1.723 3.876Zm-.438.987L3.539 14h8.922l-1.32-2.969C9.096 11.677 7.733 12 7 12c-.74 0-1.463-.315-2.161-.925ZM6 2H5V1h6v1h-1v4l3.375 7.594A1 1 0 0 1 12.461 15H3.54a1 1 0 0 1-.914-1.406L6 6V2Z"
826
+ />
827
+ </svg >
828
+ </EuiIconBeaker >
829
+ </EuiIcon >
830
+ </button >
831
+ </EuiButtonIcon >
832
+ </div >
833
+ </EuiFlexItem >
918
834
<EuiFlexItem
919
835
grow = { false }
920
836
>
0 commit comments