Skip to content

Commit

Permalink
fix horizontal rule (#134832) (#134845)
Browse files Browse the repository at this point in the history
(cherry picked from commit 61be8fb)

Co-authored-by: Michael Olorunnisola <[email protected]>
  • Loading branch information
kibanamachine and michaelolo24 authored Jun 21, 2022
1 parent b7b16aa commit e6ecddc
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
EuiSpacer,
EuiText,
EuiDescriptionList,
EuiHorizontalRule,
EuiTextColor,
EuiTitle,
} from '@elastic/eui';
Expand Down Expand Up @@ -330,20 +331,12 @@ const StyledDescriptiveName = memo(styled(EuiText)`
`);

const StyledFlexTitle = memo(styled('h3')`
align-items: center;
display: flex;
flex-flow: row;
font-size: 1.2em;
`);
const StyledTitleRule = memo(styled('hr')`
&.euiHorizontalRule.euiHorizontalRule--full.euiHorizontalRule--marginSmall.override {
display: block;
flex: 1;
margin-left: 0.5em;
}
`);

const TitleHr = memo(() => {
return (
<StyledTitleRule className="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginSmall override" />
);
return <EuiHorizontalRule margin="none" size="half" />;
});

0 comments on commit e6ecddc

Please sign in to comment.