Skip to content
Merged
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## [`main`](https://github.com/elastic/eui/tree/main)

No public interface changes since `46.0.0`.
- Updated styles in `EuiDescriptionList` of `type` inline ([#5534](https://github.com/elastic/eui/pull/5534))

## [`46.0.0`](https://github.com/elastic/eui/tree/v46.0.0)

Expand Down
13 changes: 6 additions & 7 deletions src/components/description_list/_description_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,10 @@
.euiDescriptionList__title {
@include euiFontSizeS;
display: inline;
border-radius: $euiBorderRadius;
font-weight: $euiFontWeightRegular;
background: $euiColorLightestShade;
border: $euiBorderThin;
padding: 0 $euiSizeXS;
border-radius: $euiBorderRadiusSmall;
font-weight: $euiFontWeightMedium;
background-color: tintOrShade($euiColorLightShade, 50%, 0%);
padding: 1px $euiSizeXS;
margin: 0 $euiSizeXS;

// Make sure the first <dt> doesn't get a margin.
Expand All @@ -189,14 +188,14 @@
.euiDescriptionList__description {
@include euiFontSizeS;
display: inline;
word-break: break-all;
}

// Compressed when inline is even smaller.
&.euiDescriptionList--compressed {

.euiDescriptionList__title {
@include euiFontSizeXS;
padding: 0 $euiSizeXS;
}

.euiDescriptionList__description {
Expand All @@ -209,4 +208,4 @@
}
}

}
}
7 changes: 7 additions & 0 deletions src/themes/amsterdam/overrides/_description_list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.euiDescriptionList {
&.euiDescriptionList--inline.euiDescriptionList--compressed {
.euiDescriptionList__title {
line-height: $euiLineHeight;
}
}
}
1 change: 1 addition & 0 deletions src/themes/amsterdam/overrides/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@import 'data_grid';
@import 'date_picker';
@import 'date_popover_button';
@import 'description_list';
@import 'facet';
@import 'filter_group';
@import 'form_control_layout';
Expand Down