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 2
2
@import url ('https://fonts.googleapis.com/css2?family=Inconsolata&display=swap' );
3
3
@import url ('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&display=swap' );
4
4
@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' );
5
6
6
7
/*
7
8
* 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 {
35
35
SegmentedControlProps ,
36
36
SelectPicker ,
37
37
SelectPickerOptionType ,
38
+ SelectPickerProps ,
38
39
useAsync ,
39
40
useRegisterShortcut ,
40
41
} from '@devtron-labs/devtron-fe-common-lib'
@@ -181,6 +182,14 @@ const ResourceFilterOptions = ({
181
182
const getResourcesToExport = ( ) : Promise < Record < ResourceRecommenderHeaderType , string > [ ] > =>
182
183
Promise . resolve ( getResourceRecommendationsCSVData ( filteredRows . map ( ( row ) => row . data ) ) )
183
184
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
+
184
193
return (
185
194
< >
186
195
{ typeof renderRefreshBar === 'function' && renderRefreshBar ( ) }
@@ -217,6 +226,7 @@ const ResourceFilterOptions = ({
217
226
handleSearchChange = { handleOnChangeSearchText }
218
227
initialSearchText = { searchText }
219
228
keyboardShortcut = "/"
229
+ containerClassName = "w-250"
220
230
/>
221
231
</ div >
222
232
</ div >
@@ -284,6 +294,7 @@ const ResourceFilterOptions = ({
284
294
icon = { < NamespaceIcon className = "fcn-6" /> }
285
295
disabledTippyContent = { NAMESPACE_NOT_APPLICABLE_TEXT }
286
296
shouldMenuAlignRight
297
+ onKeyDown = { onNamespaceFilterKeyDown }
287
298
keyboardShortcut = "N"
288
299
/>
289
300
</ div >
Original file line number Diff line number Diff line change @@ -5182,3 +5182,7 @@ details[open] {
5182
5182
contain : paint;
5183
5183
}
5184
5184
}
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;
246
246
font-family : ' Merriweather' ;
247
247
}
248
248
249
+ .font-ibm-plex-sans {
250
+ font-family : ' IBM Plex Sans' ;
251
+ }
252
+
249
253
.font-ibm-plex-mono {
250
254
font-family : ' IBM Plex Mono' ;
251
255
}
You can’t perform that action at this time.
0 commit comments