Skip to content

Commit 6fdf671

Browse files
committed
add style for blockquote
1 parent 620ebd7 commit 6fdf671

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

packages/dev/s2-docs/pages/react-aria/Table.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,13 +784,13 @@ See below for the full definition of the `User` and the `Table` tester.
784784

785785
### Testing FAQ
786786

787-
- When using the test utils, what if a certain interaction errors or doesn't seem to result in the expected state?
787+
> When using the test utils, what if a certain interaction errors or doesn't seem to result in the expected state?
788788
789789
In cases like this, first double check your test setup and make sure that your test is rendering your table in its expected
790790
state before the test util interaction call. If everything looks correct, you can always fall back to simulating interactions manually,
791791
and using the test util to query your table's state post interaction.
792792

793-
- The tester doesn't offer a specific interaction flow, what should I do?
793+
> The tester doesn't offer a specific interaction flow, what should I do?
794794
795795
Whenever the table tester queries its rows/cells/etc or triggers a user flow, it does so against the current state of the table. Therefore the table test can be used alongside
796796
whatever simulated user flow you add.

packages/dev/s2-docs/src/Layout.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,23 @@ const components = {
4646
p: ({children, ...props}) => <p {...props} className={style({font: {default: 'body', lg: 'body-lg'}, marginY: 24})}>{children}</p>,
4747
ul: (props) => <ul {...props} />,
4848
li: ({children, ...props}) => <li {...props} className={style({font: {default: 'body', lg: 'body-lg'}, marginY: 0})}>{children}</li>,
49+
blockquote: ({children, ...props}) => (
50+
<blockquote
51+
{...props}
52+
className={style({
53+
borderStartWidth: 4,
54+
borderEndWidth: 0,
55+
borderTopWidth: 0,
56+
borderBottomWidth: 0,
57+
borderStyle: 'solid',
58+
borderColor: 'gray-400',
59+
paddingStart: 12,
60+
font: {default: 'body', lg: 'body-lg'},
61+
margin: 'unset'
62+
})}>
63+
{children}
64+
</blockquote>
65+
),
4966
Figure: (props) => <figure {...props} className={style({display: 'flex', flexDirection: 'column', alignItems: 'center', marginY: 32, marginX: 0})} />,
5067
Caption: (props) => <figcaption {...props} className={style({font: 'body-sm'})} />,
5168
CodeBlock: CodeBlock,

0 commit comments

Comments
 (0)