Skip to content

Commit

Permalink
[Discover] Update fonts of the datagrid (opensearch-project#5841)
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <miki@amazon.com>
  • Loading branch information
AMoo-Miki authored Feb 8, 2024
1 parent e13dbff commit ba298c7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.discoverDataGrid {
// stylelint-disable-next-line @osd/stylelint/no_modifying_global_selectors
.euiDataGrid__content {
@include ouiCodeFont;

font-size: 12px;
}

// stylelint-disable-next-line @osd/stylelint/no_modifying_global_selectors
.euiDataGridRowCell {
font-size: inherit;
line-height: 1.6666em;

.source {
dd,
dl,
dt {
font-size: inherit !important;
}
}
}

// stylelint-disable-next-line @osd/stylelint/no_modifying_global_selectors
.euiDataGridHeaderCell {
font-size: inherit;
}

// stylelint-disable-next-line @osd/stylelint/no_modifying_global_selectors
.euiDataGridRowCell__expandButton {
top: calc(1.6666em / 2 + 6px);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

import './_data_grid_table.scss';

import React, { useState, useMemo, useCallback } from 'react';
import { EuiDataGrid, EuiDataGridSorting, EuiPanel } from '@elastic/eui';
import { IndexPattern, getServices } from '../../../opensearch_dashboards_services';
Expand Down Expand Up @@ -212,6 +214,7 @@ export const DataGridTable = ({
sorting={sorting}
toolbarVisibility={isToolbarVisible ? toolbarOptions : false}
rowHeightsOptions={rowHeightsOptions}
className="discoverDataGrid"
/>
),
[
Expand Down

0 comments on commit ba298c7

Please sign in to comment.