Skip to content

Commit 22b7f7d

Browse files
committed
feat: add IBM Plex font
1 parent 96bd8b9 commit 22b7f7d

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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

src/components/ResourceBrowser/ResourceList/ResourceFilterOptions.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

src/css/base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5182,3 +5182,7 @@ details[open] {
51825182
contain: paint;
51835183
}
51845184
}
5185+
5186+
kbd {
5187+
font-family: 'IBM Plex Sans';
5188+
}

src/css/formulae.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)