File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @launchpad-ui/components " : patch
3+ ---
4+
5+ Code component inline style bug fix
Original file line number Diff line number Diff line change 66 width : fit-content;
77 background-color : var (--lp-color-bg-ui-tertiary );
88 padding : var (--lp-spacing-100 ) var (--lp-spacing-200 );
9- display : flex;
9+ display : inline- flex;
1010 border : none;
1111 outline : none;
1212}
Original file line number Diff line number Diff line change 11import type { Meta , StoryObj } from '@storybook/react-vite' ;
22
33import { Code } from '../src/Code' ;
4+ import { Text } from '../src/Text' ;
45
56const meta : Meta < typeof Code > = {
67 title : 'Components/Content/Code' ,
@@ -61,3 +62,13 @@ export const Size: Story = {
6162 </ div >
6263 ) ,
6364} ;
65+
66+ export const Inline : Story = {
67+ render : ( ) => (
68+ < Text >
69+ This paragraph contains inline code like < Code > const variable = "value";</ Code > which should
70+ flow naturally within the text. The code component should behave as an inline element, not
71+ breaking the text flow.
72+ </ Text >
73+ ) ,
74+ } ;
You can’t perform that action at this time.
0 commit comments