Skip to content

Commit

Permalink
[EuiDescriptionListTitle] Misc compressed style fixes (#7185)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Sep 14, 2023
1 parent e46a21c commit 3e0438a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports[`EuiDescriptionListTitle EuiDescriptionListTitle prop variations type co

exports[`EuiDescriptionListTitle EuiDescriptionListTitle prop variations type inline is rendered 1`] = `
<dt
class="euiDescriptionList__title emotion-euiDescriptionList__title-inline-normal-s"
class="euiDescriptionList__title emotion-euiDescriptionList__title-inline-normal"
/>
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export const euiDescriptionListTitleStyles = (euiThemeContext: UseEuiTheme) => {
${logicalCSS('padding-horizontal', euiTheme.size.xs)}
`,
compressed: css`
${euiFontSize(euiThemeContext, 'xs')}
font-size: ${euiFontSize(euiThemeContext, 'xs').fontSize};
line-height: ${euiTheme.font.lineHeightMultiplier};
${logicalCSS('padding-vertical', '0')}
${logicalCSS('padding-horizontal', euiTheme.size.xs)}
`,
Expand Down
1 change: 0 additions & 1 deletion src/components/description_list/description_list_title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const EuiDescriptionListTitle: FunctionComponent<
conditionalStyles = compressed
? [styles.inlineStyles.compressed]
: [styles.inlineStyles.normal];
conditionalStyles.push(styles[rowGutterSize]);
break;
case 'row':
conditionalStyles.push(styles[rowGutterSize]);
Expand Down
7 changes: 0 additions & 7 deletions src/themes/amsterdam/overrides/_description_list.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/themes/amsterdam/overrides/_index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import 'combo_box';
@import 'data_grid';
@import 'description_list';
@import 'form_control_layout';
@import 'form_control_layout_delimited';
@import 'form_controls';
Expand Down
4 changes: 4 additions & 0 deletions upcoming_changelogs/7185.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Bug fixes**

- Fixed the inline compressed styles of `EuiDescriptionListTitle` to use a taller line-height for readability

0 comments on commit 3e0438a

Please sign in to comment.