Skip to content

Commit 46a8dcc

Browse files
committed
force space between children in InlineText
1 parent 6094769 commit 46a8dcc

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

src/components/Typography/stories/InlineText.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const Template: StoryFn<typeof InlineText> = (args) => <InlineText {...args} />;
1919
export const Default = Template.bind({});
2020
Default.args = {
2121
children: (
22-
<>
23-
<div>Block line 1</div>
24-
<div>Block line 2</div>
25-
</>
22+
<div>
23+
<div>Block line 1.</div>
24+
<div>Block line 2.</div>
25+
</div>
2626
),
2727
};

src/components/Typography/typography.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ table {
223223
max-width: 100%;
224224
overflow: hidden;
225225
text-overflow: ellipsis;
226+
vertical-align: middle;
226227
overflow-wrap: normal;
227228
white-space: nowrap;
228-
vertical-align: middle;
229229
}
230230

231231
.#{$eccgui}-typography__overflowtext--inline {
@@ -241,8 +241,8 @@ table {
241241
}
242242

243243
.#{$eccgui}-typography__overflowtext--ellipsis-reverse {
244-
text-align: left;
245244
text-overflow: ellipsis;
245+
text-align: left;
246246
direction: rtl;
247247
unicode-bidi: embed;
248248

@@ -270,6 +270,12 @@ table {
270270

271271
* {
272272
display: inline;
273+
274+
& + * {
275+
&::before {
276+
content: " ";
277+
}
278+
}
273279
}
274280
}
275281

0 commit comments

Comments
 (0)