File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
components/ResourceBrowser/ResourceList Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 22@import url ('https://fonts.googleapis.com/css2?family=Inconsolata&display=swap' );
33@import url ('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&display=swap' );
44@import url ('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap' );
5+ @import url (
'https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:[email protected] &display=swap' );
56
67/*
78 * Although this is duplicated but this would help us with consistent loader in case
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import {
3535 SegmentedControlProps ,
3636 SelectPicker ,
3737 SelectPickerOptionType ,
38+ SelectPickerProps ,
3839 useAsync ,
3940 useRegisterShortcut ,
4041} from '@devtron-labs/devtron-fe-common-lib'
@@ -181,6 +182,14 @@ const ResourceFilterOptions = ({
181182 const getResourcesToExport = ( ) : Promise < Record < ResourceRecommenderHeaderType , string > [ ] > =>
182183 Promise . resolve ( getResourceRecommendationsCSVData ( filteredRows . map ( ( row ) => row . data ) ) )
183184
185+ const onNamespaceFilterKeyDown : SelectPickerProps [ 'onKeyDown' ] = ( e ) => {
186+ if ( e . key === 'Escape' || e . key === 'Esc' ) {
187+ e . preventDefault ( )
188+ namespaceFilterRef . current ?. blurInput ( )
189+ namespaceFilterRef . current ?. blur ( )
190+ }
191+ }
192+
184193 return (
185194 < >
186195 { typeof renderRefreshBar === 'function' && renderRefreshBar ( ) }
@@ -217,6 +226,7 @@ const ResourceFilterOptions = ({
217226 handleSearchChange = { handleOnChangeSearchText }
218227 initialSearchText = { searchText }
219228 keyboardShortcut = "/"
229+ containerClassName = "w-250"
220230 />
221231 </ div >
222232 </ div >
@@ -284,6 +294,7 @@ const ResourceFilterOptions = ({
284294 icon = { < NamespaceIcon className = "fcn-6" /> }
285295 disabledTippyContent = { NAMESPACE_NOT_APPLICABLE_TEXT }
286296 shouldMenuAlignRight
297+ onKeyDown = { onNamespaceFilterKeyDown }
287298 keyboardShortcut = "N"
288299 />
289300 </ div >
Original file line number Diff line number Diff line change @@ -5182,3 +5182,7 @@ details[open] {
51825182 contain : paint;
51835183 }
51845184}
5185+
5186+ kbd {
5187+ font-family : ' IBM Plex Sans' ;
5188+ }
Original file line number Diff line number Diff line change @@ -246,6 +246,10 @@ $color-suffix: 00;
246246 font-family : ' Merriweather' ;
247247}
248248
249+ .font-ibm-plex-sans {
250+ font-family : ' IBM Plex Sans' ;
251+ }
252+
249253.font-ibm-plex-mono {
250254 font-family : ' IBM Plex Mono' ;
251255}
You can’t perform that action at this time.
0 commit comments