Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EuiDescriptionListTitle] Misc compressed style fixes #7185

Merged
merged 4 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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

Loading