Skip to content

Commit

Permalink
[Discover] Update fonts of the datagrid (#5841) (#5843)
Browse files Browse the repository at this point in the history
(cherry picked from commit ba298c7)

Signed-off-by: Miki <miki@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Kawika Avilla <kavilla414@gmail.com>
  • Loading branch information
3 people authored Feb 8, 2024
1 parent 26c5a8c commit a2d7fb0
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 a2d7fb0

Please sign in to comment.