Skip to content

Commit

Permalink
fix horizontal rule (#134832)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelolo24 authored Jun 21, 2022
1 parent 12d04a9 commit 61be8fb
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 61be8fb

Please sign in to comment.